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
If you see this warning and the errors caused by it, please ensure you are running your code in the environment where the source code is available at runtime.
Typical environment where the source code is not available at runtime:
Raw Python REPL (type python from command line and run your code there)
If you see this warning and the errors caused by it, please ensure you are running your code in the environment where the source code is available at runtime.
Typical environment where the source code is not available at runtime:
python
from command line and run your code there)exec()
If you want to use a Python REPL to run your code,
ipython
,bpython
andjupyter notebook
are recommended.If you can't avoid using
exec()
, useexec_code()
fromvarname.helpers
instead.What if I want to use
exec()
anyway? The idea is to tellexec
where to retrieve the source code. See howexec_code()
is implemented:python-varname/varname/helpers.py
Lines 229 to 297 in ea1ec82
Related:
The text was updated successfully, but these errors were encountered: