jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.77k stars 5k forks source link

ModuleNotFoundError after pip install notebook==7.0.0 #6802

Closed keijiu closed 1 year ago

keijiu commented 1 year ago

I upgrade notebook to V7 by pip install notebook==7.0.0a17. I typed jupyter notebook in Mac terminal as usual but error occurs saying ModuleNotFoundError: No module named 'notebook.notebookapp'. Anyone know how to deal with it? I have to reinstall notebook 6.5

jtpio commented 1 year ago

Thanks @KayjiYu for trying out the Notebook 7 pre-release :+1:

It looks like it could be an issue with the terminal not finding the right command for starting the application.

Did you try to install v7 in a new virtual environment?

keijiu commented 1 year ago

Thanks for your advice!

I created a virtual environment and installed notebook 7.0.0a18, it works!

However it seems that some packages are not compatible with notebook V7, for example, Jupyterthemes. I'm still being used to the built-in dark mode.

Anyway, v7 works well so far. Thank you so much.

jtpio commented 1 year ago

Thanks again for trying the pre-release!

For reference it's possible to use existing JupyterLab themes like JupyterLab Dark (built-in) or JupyterLab Night (third-party):

https://user-images.githubusercontent.com/591645/228470906-29f94381-28dd-4add-a0d9-161b9109ad58.mp4

I opened https://github.com/jupyter/notebook/issues/6805 to track adding this to the documentation.

jtpio commented 1 year ago

However it seems that some packages are not compatible with notebook V7, for example, Jupyterthemes. I'm still being used to the built-in dark mode.

Also the author of https://github.com/dunovank/jupyter-themes has ported some themes for JupyterLab, which should work in Notebook 7:

keijiu commented 1 year ago

Thanks a lot!

I have been trying the darkside_ui as well as the jupyterlab built-in dark mode. They are okay but my personal preference is still 'onedork' which is not available right now. Never mind ! I'm getting used to them!

Thank you again for following up with the simple inquiry ! I'm enjoying the notebook 7.

jtpio commented 1 year ago

They are okay but my personal preference is still 'onedork' which is not available right now.

There seems to be a One Dark Pro theme available though, not sure how similar to onedork it is: https://github.com/johnnybarrels/jupyterlab_onedarkpro

jtpio commented 1 year ago

Closing as answered. I opened https://github.com/jupyter/notebook/pull/6813 to improve the documentation about migrating to Notebook 7, and documenting the topic of themes there.

Thanks again!