E
E
Eva052015-11-24 13:26:44
Python
Eva05, 2015-11-24 13:26:44

How to load file.py in Ipython?

I have a file.py saved in Ipython(%save my_useful_session8.py)
how to load this file into IPython so that all variable values ​​are read.
I write %load my_useful_session8.py , it gives me the entire text of the script, but it doesn’t remember the variables and I can’t access them, it says that such values ​​are not defined.
The script used libraries Pandas, SciPy, Numpe, MatplotLib.
I ask for advice. Thanks in advance

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
angru, 2015-11-24
@angru

from my_useful_session8 import *

N
nirvimel, 2015-11-24
@nirvimel

%run my_useful_session8.py
https://ipython.org/ipython-doc/dev/interactive/ma...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question