help icon indicating copy to clipboard operation
help copied to clipboard

How to run a code with import?

Open sergio-bezerra opened this issue 6 years ago • 2 comments

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?

sergio-bezerra avatar Dec 03 '18 18:12 sergio-bezerra

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

minrk avatar Dec 05 '18 11:12 minrk

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 [email protected] 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 https://github.com/jupyter/help/issues/471#issuecomment-444450276, 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.

sergio-bezerra avatar Dec 05 '18 13:12 sergio-bezerra