Replies: 2 comments 15 replies
-
Heya, IIRC no not currently I'm afraid. I'm a little hesitant of modifying the actual contents of notebooks within jupyter-book. import os
if "JUPYTER_BOOK" in os.environ:
%config InlineBackend.figure_format = "retina"
plt.rcParams["axes.spines.right"] = False
plt.rcParams["axes.spines.top"] = False jupyter/nbclient#79 may also be relevance |
Beta Was this translation helpful? Give feedback.
-
Thanks, guys; I think the usage of conditioning based on environment variable is an acceptable way to handle it. That said, I see the value of the external configuration as well. Instead of injecting code cells is there is a way to specify the directory/configuration/rc file for visualization libraries. Most of the visualization libraries have this notion of themes/config and incorporating these themes using the configuration options in jupyter-book may be another way to help customize the generation of final document format. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I would prefer to keep the quality of images low in the jupyter notebooks while writing it as well as when storing it in git however when jupyter-book generates the pages I would prefer that the images are of high quality (retina).
I generally have this at the top of my notebooks
Is there a way to configure these types settings outside the notebook and provide a file (rc files, an additional section in _config.yml etc) to jupyter-book to use?
Regards & thanks
Kapil
Beta Was this translation helpful? Give feedback.
All reactions