vatlab / sos-notebook

Multi-language Jupyter Notebook
http://vatlab.github.io/SoS
BSD 3-Clause "New" or "Revised" License
177 stars 17 forks source link

possible bug - cell code selection dropdown does not appear in jupyterlab, but appear in notebook #299

Closed rkuo closed 4 years ago

rkuo commented 4 years ago

I am new on this. I try to learn jupyter and other python related packages on a old iMac (os 10.12.6). I installed jupyter with Anaconda and set a new environment python=3.7. I managed to get sos worked with notebook but not with jupyterlab (dropdown did not show). In one error message, it indicated I need to install Node version >10. node -v returned v6.13.1. So, I did conda install nodejs=13.13.0 . The system asked me to rebuild lab jupyter lab build, it worked after new node version.

The default version of nodejs used in jupyterlab may be too old.

BoPeng commented 4 years ago

This is a known issue, basically classic jupyter, because of its dependency on a remote package (matplotlib_base as far as I remember), depends on node < 10, but Jupyterlab depends on node >= 10. There are ways to get around of this problem to have both installed (e.g. install classic jupyter, upgrade node without dependency checking, then install jupyterlab) but we generally recommend using jupyterlab only to avoid potential problems.

What makes things even more confusing is that anaconda is bundled with an earlier version of JupyterLab that requires node < 10.

rkuo commented 4 years ago

Thank you, I will avoid matplotlib for now.

On Aug 6, 2020, at 7:58 AM, Bo notifications@github.com wrote:

This is a known issue, basically classic jupyter, because of its dependency on a remote package (matplotlib_base as far as I remember), depends on node < 10, but Jupyterlab depends on node >= 10. There are ways to get around of this problem to have both installed (e.g. install classic jupyter, upgrade node without dependency checking, then install jupyterlab) but we generally recommend using jupyterlab only to avoid potential problems.

What makes things even more confusing is that anaconda is bundled with an earlier version of JupyterLab that requires node < 10.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vatlab/sos-notebook/issues/299#issuecomment-669980834, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADYVYHUTWFMVKGBZKZMJPLR7LAILANCNFSM4PWQEUCA.