Jupyter #206
-
I was successfully using Jupyter with Pyscript, but am now having a problem. It used to be that Now, however, my project's context is missing, so all I get is I believe this problem arose after I modified config.yaml to include a Pyscript-specific yaml file: Any suggestions short of reinstalling Pyscript and Jupyter? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This was temporarily resolved by reinstalling Anaconda, but the problem recurred after about a day. |
Beta Was this translation helpful? Give feedback.
-
The root cause of the problem was a Python newbie misunderstanding; failure to distinguish between runtime errors and compile time errors. After a runtime error in the 'scripts.test_script' context, there is still a 'scripts.test_script' global context which Jupyter can see and which will be listed by the 'pyscript.list_global_ctx()' command. However, a compile time error in the script will--of course--prevent the context from being created in the first place, which explains why it was not showing up. |
Beta Was this translation helpful? Give feedback.
The root cause of the problem was a Python newbie misunderstanding; failure to distinguish between runtime errors and compile time errors.
After a runtime error in the 'scripts.test_script' context, there is still a 'scripts.test_script' global context which Jupyter can see and which will be listed by the 'pyscript.list_global_ctx()' command. However, a compile time error in the script will--of course--prevent the context from being created in the first place, which explains why it was not showing up.