WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Discussion options

You must be logged in to vote

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.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dorbitbrown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant