Community
cancel
Showing results for 
Search instead for 
Did you mean: 
183 Views

Can't import already installed libraries

I am unable to load some libraries thought they are already installed. For example I get the following for ipywidgets ....

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-2-ba42fb37233b> in <module>()
      1 #Import your dependencies here
----> 2 from demoTools.demoutils import *
      3 import matplotlib.pyplot as plt

~/demoTools/demoutils.py in <module>()
      2 import threading
      3 from IPython.display import display, Image
----> 4 import ipywidgets as widgets
      5 import time
      6 import queue

ModuleNotFoundError: No module named 'ipywidgets'

 

0 Kudos
2 Replies
183 Views

Can you please share with us the kernel you are running?

You can find the kernel name on the top right of the notebook. The correct kernel should be Python 3 (Ubuntu), it has all dependencies needed to run sample notebooks installed.

If you want to use a different kernel, you will need to locally install ipywidgets and any other needed libraries to your account.

Andrey_Vladimirov
New Contributor III
183 Views

Hello Wanko,

I cannot fully diagnose the issue with the information provided but my best guess is that your notebook is not using the right kernel. The right kernel is "Python3 (Ubuntu)". If that does not help, please post a screenshot that would give me more information about your environment.

Best regards,

Andrey

Reply