Sylvi0202
Sylvi0202

Reputation: 991

Import module "ipython" in Jupyter notebook

Can somebody please help me loading the ipython module into jupyter notebooks?

This is what I get when trying to load it

Upvotes: 1

Views: 3764

Answers (2)

mpacer
mpacer

Reputation: 3196

I believe that part of the problem is the capitalisation of the IPython package in your import statement:

try: import IPython.html.widgets

I don't know if that will get you everything you want, but that's probably the issue regarding your import.

Upvotes: 0

safay
safay

Reputation: 627

ipython is a dependency for Jupyter, so it's already installed.

It looks like you're trying to import ipython widgets (ipywidgets) for use in Jupyter. To do this, in your shell (outside of Jupyter) install ipywidgets:

pip install ipywidgets
jupyter nbextension enable --py widgetsnbextension

Then import widgets:

import ipywidgets as widgets

Read the docs to learn more about installing and using ipython widgets.

Upvotes: 1

Related Questions