How to run a code with import?
Opened this issue · 2 comments
sergio-bezerra commented
I am using a notebook that has been used with some code box but i try to use import and does not work. What can i do?
minrk commented
Can you provide more info? What code are you trying to execute and what error do you get?
sergio-bezerra commented
Hi,
I typed the folowing three comand lines:
# figure Jupyter so figures appear in the notebook
%matplotlib inline
# Configure Jupyter to display the assigned value after an assignment
%config InteractiveShell.ast_node_interactivity='last_expr_or_assign'
# import functions from the modsim library
from modsim import *
With the error mensage below:
AttributeError Traceback (most recent call last)
<ipython-input-6-b3411d43d051> in <module>
1 # figure Jupyter so figures appear in the notebook
----> 2 get_ipython().run_line_magic('matplotlib', 'inline')
3
4 # Configure Jupyter to display the assigned value after an
assignment.
5 get_ipython().run_line_magic('config',
"InteractiveShell.ast_node_interactivity='last_expr_or_assign'")
Le mer. 5 déc. 2018 à 09:15, Min RK <notifications@github.com> a écrit :
… Can you provide more info? What code are you trying to execute and what
error do you get?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#471 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ArTBEGphkxB0fUIICgZ3Jn26on7_Y4L6ks5u16rugaJpZM4Y_KxF>
.
--
Sérgio Bezerra
Professor do Centro de Informática da UFPB (Campus V-Mangabeira)
Departamento de Computação Científica.