plot problem

49 views
Skip to first unread message

Plot problem

unread,
Nov 9, 2019, 1:59:09 PM11/9/19
to message_ix
Hello friends
When I run the example of the tutorial by the name Westeroid in MESSAGE-ix, I confront the problem which is attached  below.

Would you please help me to tackle this problem?

Thanks.
1.txt

Paul Natsuo Kishimoto

unread,
Nov 11, 2019, 10:32:15 AM11/11/19
to message_ix
Hello “Plot problem”,

Please ensure you have downloaded the tutorials and started Jupyter according to the instructions in the documentation:

From the error message that you shared, it seems you are missing the file "tools.py" that must live in the same directory as the Jupyter Notebook (.ipynb) files:
from tools import Plots
p
= Plots(scenario, country, firstyear=model_horizon[0])

---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-39-73d4a6a72ef8> in <module>
----> 1 from tools import Plots
 
2 p = Plots(scenario, country, firstyear=model_horizon[0])

ImportError: cannot import name 'Plots' from 'tools' (C:\Anaconda\lib\site-packages\tools\__init__.py)

Reply all
Reply to author
Forward
0 new messages