Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
1624 Discussions

Can't import already installed libraries

Wanko_Pohdie__Eie_Va
862 Views

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
Eltablawy__Alaa
862 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.

0 Kudos
Andrey_Vladimirov
New Contributor III
862 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

0 Kudos
Reply