Skip to content

Commit

Permalink
Merge pull request #196 from RRosio/docs-update
Browse files Browse the repository at this point in the history
Update documentation
  • Loading branch information
echarles authored Jan 20, 2023
2 parents c46151b + 6e10282 commit 8e5232e
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 9 deletions.
63 changes: 54 additions & 9 deletions docs/source/nbclassic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,64 @@ NbClassic in the Jupyter Ecosystem
Read more details about the changes currently taking place in the
Jupyter Ecosystem in this `team-compass issue`_.

You can install the nbclassic, notebook 7 and jupyterlab, all three of
**NbClassic and Notebook 7**

You can install NbClassic, Notebook 7 and JupyterLab, all three of
which will be providing different user interfaces that will be available
on the same server.
on the same server. When Notebook 7 is available, the NbClassic UI, will
be served at the ``/nbclassic/tree`` base path rather than the
base path ``/tree`` used otherwise. If you are using Notebook 7 along
with NbClassic, you wil also have JupyterLab installed as it is a
dependency of Notebook 7, and these front ends will be available
through the following base paths: JupyterLab at ``/lab``, Notebook 7 at
``/tree``, and NbClassic at ``/nbclassic/tree``.

**NbClassic and Notebook 6.5.x**

As nbclassic provides the static assets for notebook 6.5.x, while
As NbClassic provides the static assets for Notebook 6.5.x, while
having both installed should cause no issues, the user interface provided
by these two packages will be the same. These UIs would be available in
different servers.

When using nbclassic and notebook <= 6.4.x you can expect that these UIs
will not be only presented at different servers but may also differ as
potential changes to the nbclassic UI will not be reflected in Notebook
versions <= 6.4.x.
different servers. An NbClassic instance will be at a server with the
``/tree`` path and opening a Notebook 6.5.x instance will open on a
different server with the ``/tree`` path as well, presenting the same
static assets. When starting an instance of JupyterLab you will be able
to access the classic view of Notebook with NbClassic served on the same
server at ``/tree``.

**NbClassic and Notebook <= 6.4.x**

When using NbClassic and Notebook <= 6.4.x you can expect that these UIs
will not be only presented at different servers, meaning they will both
be available at their respective server under ``/tree`` but they
may also differ as potential changes to the NbClassic UI will not be
reflected in Notebook versions <= 6.4.x. In this case as well, you would
be able to access the classic view of Notebook with NbClassic served on
the same server, at ``/tree``.

**NbClassic and JupyterLab 3.x**

When only JupyterLab 3.x is installed, then NbClassic does not have to be
explicitly installed as JupyterLab 3.x depends on it. They will run on
the same server, and are reachable via ``/tree`` for NbClassic and
``/lab`` for JupyterLab.

**NbClassic and JupyterLab 4.x**

When only JupyterLab 4.x is installed, then NbClassic has to be installed
explictly. They will run on the same server, and are reachable via
``/tree`` for NbClassic, and ``/lab`` for JupyterLab.

**NbClassic Independently**

When you choose to install only NbClassic via ``pip install nbclassic``,
the classic Notebook UI will be presented at the ``/tree`` path. As the
other frontends are not installed, attempting to access the other paths
will return errors. Note that NbClassic being a Jupyter Server extension,
indicated Jupyter Server will be available. This provides an additional
way to view the NbClassic frontend. You would be able to manually
enable the extension when running an instance of Jupyter Server,
``> jupyter server --ServerApp.jpserver_extensions="nbclassic=True"``,
which will provide the NbClassic frontend at ``/tree`` path when visited.

.. _team-compass issue: https://github.com/jupyter/notebook-team-compass/issues/5#issuecomment-1085254000

Expand Down
4 changes: 4 additions & 0 deletions docs/source/nbclassic_dev_faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ Noteworthy Updates in NbClassic

- Endpoints in NbClassic
- NbClassic handlers have been updated to account for Notebook 7 being installed (`Handlers under nbclassic if notebook 7 is found`_). If so, the resources from nbclassic will be served under the ``/nbclassic/`` URL subpath, so as to not interfere with those resources being served by Jupyter Notebook.
- Redirecting from ``/tree`` to ``/nbclassic/tree`` if both Notebook 7 and NbClassic are installed (`PR #166`_).

.. _`Handlers under nbclassic if notebook 7 is found`: https://github.com/jupyter/nbclassic/pull/141
.. _`PR #166`: https://github.com/jupyter/nbclassic/pull/166



NbClassic Developer FAQ
-----------------------
Expand Down

0 comments on commit 8e5232e

Please sign in to comment.