In Pro how can I access the notebook values inside the python window command line? The equivalent in a normal environment might be something like this. For me using python like this is very common.
>>> import src.portal_app as app
<module 'src.portal_app' from 'C:\\Users\\me\\code\\source\\repos\\arcgis-cloner\\src\\portal_app.py'>
>>> app.app_credentials
<module 'src.credentials.app_credentials' from 'C:\\Users\\me\\code\\source\\repos\\arcgis-cloner\\src\\credentials\\app_credentials.py'>
In Pro I have a notebook with values.
my_var = 1
env = arcpy.env.workspace
How can I get these to the command line in Pro? How do I import the notebook? Might be super simple but just can't find the docs on how to do it.
my_var
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'my_var' is not defined
If you suspect this is an IPython 8.18.1 bug, please report it at:
https://github.com/ipython/ipython/issues
or send an email to the mailing list at ipython-dev@python.org
You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.
Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
%config Application.verbose_crash=True