jupyter / help

:sparkles: Need some help or have some questions? Please visit our Discourse page.
https://discourse.jupyter.org
291 stars 97 forks source link

How to run a code with import? #471

Open sergio-bezerra opened 5 years ago

sergio-bezerra commented 5 years ago

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 5 years ago

Can you provide more info? What code are you trying to execute and what error do you get?

sergio-bezerra commented 5 years ago

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)

in 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 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 > , or mute > the thread > > . > -- Sérgio Bezerra Professor do Centro de Informática da UFPB (Campus V-Mangabeira) Departamento de Computação Científica.