NameError in IPython session
Asked by
Jan Stránský
Hello,
consider a very simple script a.py:
a = 1
when I run
yade-trunk a.py
and then write
a
in IPython, its value is normally printed.
But if the script looks like this one:
import yade
from yade import *
a = 1
run by
yade-trunk a.py
then writing
a
in IPython results in
NameError: name 'a' is not defined
do you know why? how to make 'a' accessible in IPython session?
Thanks for suggestions
Jan
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Anton Gladky
- Solved:
- Last query:
- Last reply:
To post a message you must log in.