Context
I'm new to Pycharm and I've seen we can use Jupyter notebooks (aka Ipython) within Pycharm.
Question
If I use a Python script/console and a Jupyter notebook at the same time in Pycharm, is it possible to make them sharing the objects ?
Example :
a = 2a2Maybe I am confused by your question, but can you not just use the "run" command in the iPython terminal to do what you are asking?
Say I have a python script named myscript.py. In that script, I define a = 2.
# This is myscript.py. It is located where you will invoke iPython
a = 2
If the script runs with no errors (hopefully just a variable declaration would :P) you should be able to do the following:
In [2]: run pythontest.py
In [3]: a
Out[3]: 2
If that is it, great! But I feel like I am missing some context to your question because that seems like it may be a bit too easy :).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With