|
| 1 | +Migrating to Notebook 7 |
| 2 | +======================= |
| 3 | + |
| 4 | +Build Jupyter Notebook v7 off of JupyterLab components |
| 5 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 6 | + |
| 7 | +Read more details about the changes currently taking place in the |
| 8 | +Jupyter Ecosystem in the `JEP 79`_ and `team-compass note`_. |
| 9 | + |
| 10 | +Notebook 7 is built on top of JupyterLab components and delivers new features |
| 11 | +like realtime collaboration, debugger, theming. |
| 12 | + |
| 13 | +Compatibility with older versions |
| 14 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 15 | + |
| 16 | +Any extension developed for Notebook < 7 or NbClassic will not be |
| 17 | +compatible with Notebook 7 and upwards. |
| 18 | + |
| 19 | +Some extensions like nbgrader have already been ported. We invite you to |
| 20 | +check if the extensions you are using have already been ported. |
| 21 | + |
| 22 | +Simulaneous usage of different versions |
| 23 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 24 | + |
| 25 | +**NbClassic and Notebook 7** |
| 26 | + |
| 27 | +You can install NbClassic, Notebook 7 and JupyterLab, all three of |
| 28 | +which will provide different user interfaces |
| 29 | +on the same server. When Notebook 7 is available, the NbClassic UI, will |
| 30 | +be served at the ``/nbclassic/tree`` base path rather than the |
| 31 | +base path ``/tree`` used otherwise. If you are using Notebook 7 along |
| 32 | +with NbClassic, you will also have JupyterLab installed as it is a |
| 33 | +dependency of Notebook 7, and these front ends will be available |
| 34 | +through the following base paths: JupyterLab at ``/lab``, Notebook 7 at |
| 35 | +``/tree``, and NbClassic at ``/nbclassic/tree``. |
| 36 | + |
| 37 | +**NbClassic and Notebook 6.5.x** |
| 38 | + |
| 39 | +As NbClassic provides the static assets for Notebook 6.5.x, while |
| 40 | +having both installed should cause no issues, the user interface provided |
| 41 | +by these two packages will be the same. These UIs will be served by |
| 42 | +different back end servers. An NbClassic instance will be at a server with the |
| 43 | +``/tree`` path and opening a Notebook 6.5.x instance will open on a |
| 44 | +different server with the ``/tree`` path as well, presenting the same |
| 45 | +static assets. When starting an instance of JupyterLab you will be able |
| 46 | +to access the classic view of Notebook with NbClassic served on the same |
| 47 | +server at ``/tree``. |
| 48 | + |
| 49 | +**NbClassic and Notebook <= 6.4.x** |
| 50 | + |
| 51 | +When using NbClassic and Notebook <= 6.4.x you can expect that these UIs |
| 52 | +will not be only presented at different servers, meaning they will both |
| 53 | +be available at their respective server under ``/tree`` but they |
| 54 | +may also differ as potential changes to the NbClassic UI will not be |
| 55 | +reflected in Notebook versions <= 6.4.x. In this case as well, you would |
| 56 | +be able to access the classic view of Notebook with NbClassic served on |
| 57 | +the same server, at ``/tree``. |
| 58 | + |
| 59 | +**NbClassic and JupyterLab 3.x** |
| 60 | + |
| 61 | +When only JupyterLab 3.x is installed, then NbClassic does not have to be |
| 62 | +explicitly installed as JupyterLab 3.x depends on it. They will run on |
| 63 | +the same server, and are reachable via ``/tree`` for NbClassic and |
| 64 | +``/lab`` for JupyterLab. |
| 65 | + |
| 66 | +**NbClassic and JupyterLab 4.x** |
| 67 | + |
| 68 | +When only JupyterLab 4.x is installed, then NbClassic has to be installed |
| 69 | +explictly. They will run on the same server, and are reachable via |
| 70 | +``/tree`` for NbClassic, and ``/lab`` for JupyterLab. |
| 71 | + |
| 72 | +**NbClassic Independently** |
| 73 | + |
| 74 | +When you choose to install only NbClassic via ``pip install nbclassic``, |
| 75 | +the classic Notebook UI will be presented at the ``/tree`` path. As the |
| 76 | +other frontends are not installed, attempting to access the other paths |
| 77 | +will return errors. Note that NbClassic being a Jupyter Server extension, |
| 78 | +indicated Jupyter Server will be available. This provides an additional |
| 79 | +way to view the NbClassic frontend. You would be able to manually |
| 80 | +enable the extension when running an instance of Jupyter Server, |
| 81 | +``> jupyter server --ServerApp.jpserver_extensions="nbclassic=True"``, |
| 82 | +which will provide the NbClassic frontend at ``/tree`` path when visited. |
| 83 | + |
| 84 | +.. _JEP 79: https://jupyter.org/enhancement-proposals/79-notebook-v7/notebook-v7.html |
| 85 | +.. _team-compass note: https://github.com/jupyter/notebook-team-compass/issues/5#issuecomment-1085254000 |
0 commit comments