`moduleNotFoundError` when attempting to enable a jupyter notebook extension
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2023 01:35 PM
I am running a set of commands and to run `pydeck` on jupyter notebook as per the documentation here: https://pydeck.gl/installation.html#enabling-pydeck-for-jupyter
However, it throws an `moduleNotFoundError` exception.
!pip install pydeck
!jupyter nbextension install --sys-prefix --symlink --overwrite --py pydeck
!jupyter nbextension enable --sys-prefix --py pydeck
File "/databricks/python3/lib/python3.9/site-packages/jupyter_core/application.py", line 269, in launch_instance
return super().launch_instance(argv=argv, **kwargs)
File "/databricks/python3/lib/python3.9/site-packages/traitlets/config/application.py", line 846, in launch_instance
app.start()
File "/databricks/python3/lib/python3.9/site-packages/notebook/nbextensions.py", line 980, in start
super().start()
File "/databricks/python3/lib/python3.9/site-packages/jupyter_core/application.py", line 258, in start
self.subapp.start()
File "/databricks/python3/lib/python3.9/site-packages/notebook/nbextensions.py", line 708, in start
self.install_extensions()
File "/databricks/python3/lib/python3.9/site-packages/notebook/nbextensions.py", line 679, in install_extensions
full_dests = install(self.extra_args[0],
File "/databricks/python3/lib/python3.9/site-packages/notebook/nbextensions.py", line 203, in install_nbextension_python
m, nbexts = _get_nbextension_metadata(module)
File "/databricks/python3/lib/python3.9/site-packages/notebook/nbextensions.py", line 1114, in _get_nbextension_metadata
m = import_item(module)
File "/databricks/python3/lib/python3.9/site-packages/traitlets/utils/importstring.py", line 38, in import_item
return __import__(parts[0])
ModuleNotFoundError: No module named 'pydeck'
A related question, what is the difference when I install libraries using `pip` from jupyter notebook vs the databricks GUI ?
- Labels:
-
Notebook
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2023 11:09 PM
Hi Could you please check if the dependencies are already installed?
https://deckgl.readthedocs.io/en/latest/installation.html
Please let us know if this helps.
Also, please tag @Debayan with your next response so that I will be notified. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2023 06:49 AM
Hi @Keval Shah
Thank you for posting your question in our community! We are happy to assist you.
To help us provide you with the most accurate information, could you please take a moment to review the responses and select the one that best answers your question?
This will also help other community members who may have similar questions in the future. Thank you for your participation and let us know if you need any further assistance!

