You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python 3.7 added a new contextvars package to "manage, store, and access context-local state".
However, if I set a ContextVar in one cell and then try to get it in another, it isn't persisted:
This may be an antipattern (not sure if there is a good use case to set a variable across many cells) and I worked around it by setting default, as recommended. However it is surprising and is different than how ipython works.
greenape, pafonta, JarnoRFB, svlandeg and LifeIsStrange