Closed 12rambau closed 8 months ago
I believe that using a standard logic for evaluation of code is a useful design constraint for us. So far jupyter-sphinx follows the concept of "like a notebook" sequential execution, which makes it easy to understand. In your minimal example, I believe, the state will be shared if the two directives happen within the same document (or more specifically within the same jupyter-kernel
directive in one document.
My own solution for initialization code that goes into all documents would be some flavor of the following:
from tools import initialize_notebook; initialize_notebook()
hidden to the start of each notebook..rst
file and .. include
ing it everywhere.thanks @akhmerov it makes sense!
I would like to use the jupyter-execute directive to display maps using Google earth engine based images. My main issue is that authenticating to GEE is a complex function that I need to set at the start of every single directive:
Is there a way to make it once and for all (e.g. in index.rst) and make sure I use the same kernel everywhere ?
A minimal example would be to share a variable between 2 executions:
Thanks for your help