Replies: 3 comments 1 reply
-
The MyST-NB package handles MD->IPYNB parsing and execution. Here's where that happens:
hope that helps! |
Beta Was this translation helpful? Give feedback.
-
@choldgraf Thank you for your pointers. I found parsing
I still don't completely understand the flow of this yet, but I am getting closer. |
Beta Was this translation helpful? Give feedback.
-
python2/kernel.json {
"display_name": "Python 2",
"language": "python",
"argv": [
"/opt/bb/bin/python2.7",
"-m",
"ipykernel_launcher",
"-f",
"{connection_file}"
]
} custom2.7/kernel.json {
"argv": [
"/opt/bb/bin/custom2.7",
"-m",
"ipykernel_launcher",
"-f",
"{connection_file}"
],
"display_name": "custom2.7",
"language": "python"
} What is strange about this, is that the custom2.7 generates a working notebook and executes ok. I |
Beta Was this translation helpful? Give feedback.
-
I am looking at some sort of problem where I have two different interpreters set up - each is a 2.7 based. I have jupyter-book installed using 3.8. I have kernel.json files set up for each of the 2.7 interpreters. One is just a native 2.7 interpreter, the other is embedded in an application.
jupyter book build works for one (the embedded one!) and generates the expected notebook.
For the other, it fails to execute with an import error. But if I set it up to not fail on the error, when I publish, the notebook that failed works just fine, running the desired interpreter. Changing the kernel name from python2 to the embedded one works, but could not always be expected to work since the embedded one has some modules that the normal 2.7 version does not have.
Where should I look to find the start of the execution in the build step?
Beta Was this translation helpful? Give feedback.
All reactions