Showing results for 
Search instead for 
Did you mean: 

`moduleNotFoundError` when attempting to enable a jupyter notebook extension

New Contributor III

I am running a set of commands and to run `pydeck` on jupyter notebook as per the documentation here:

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/", line 269, in launch_instance
    return super().launch_instance(argv=argv, **kwargs)
  File "/databricks/python3/lib/python3.9/site-packages/traitlets/config/", line 846, in launch_instance
  File "/databricks/python3/lib/python3.9/site-packages/notebook/", line 980, in start
  File "/databricks/python3/lib/python3.9/site-packages/jupyter_core/", line 258, in start
  File "/databricks/python3/lib/python3.9/site-packages/notebook/", line 708, in start
  File "/databricks/python3/lib/python3.9/site-packages/notebook/", line 679, in install_extensions
    full_dests = install(self.extra_args[0],
  File "/databricks/python3/lib/python3.9/site-packages/notebook/", line 203, in install_nbextension_python
    m, nbexts = _get_nbextension_metadata(module)
  File "/databricks/python3/lib/python3.9/site-packages/notebook/", line 1114, in _get_nbextension_metadata
    m = import_item(module)
  File "/databricks/python3/lib/python3.9/site-packages/traitlets/utils/", 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 ?


Esteemed Contributor III
Esteemed Contributor III

Hi Could you please check if the dependencies are already installed?

Please let us know if this helps. 

Also, please tag @Debayan​ with your next response so that I will be notified. Thanks!

Not applicable

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! 

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.