Hi everyone,
I recently updated JupyterLab to 1.2.1. As I was adding some extensions, I noticed that the building of them was really slow, like 20 minutes on my T495 Ubuntu machine.
I installed JupyterLab through conda
# Name Version Build Channel
_libgcc_mutex 0.1 main
appdirs 1.4.3 py_1 conda-forge
attrs 19.3.0 py_0 conda-forge
backcall 0.1.0 py_0 conda-forge
black 19.10b0 py37_0 conda-forge
bleach 3.1.0 py_0 conda-forge
bzip2 1.0.8 h516909a_1 conda-forge
ca-certificates 2019.9.11 hecc5488_0 conda-forge
certifi 2019.9.11 py37_0 conda-forge
click 7.0 py_0 conda-forge
colorama 0.4.1 py_0 conda-forge
decorator 4.4.1 py_0 conda-forge
defusedxml 0.6.0 py_0 conda-forge
entrypoints 0.3 py37_1000 conda-forge
icu 64.2 he1b5a44_1 conda-forge
importlib_metadata 0.23 py37_0 conda-forge
ipykernel 5.1.3 py37h5ca1d4c_0 conda-forge
ipython 7.9.0 py37h5ca1d4c_0 conda-forge
ipython_genutils 0.2.0 py_1 conda-forge
jedi 0.15.1 py37_0 conda-forge
jinja2 2.10.3 py_0 conda-forge
json5 0.8.5 py_0 conda-forge
jsonschema 3.1.1 py37_0 conda-forge
jupyter_client 5.3.3 py37_1 conda-forge
jupyter_core 4.5.0 py_0 conda-forge
jupyterlab 1.2.1 py_0 conda-forge
jupyterlab-black 0.2.1 pypi_0 pypi
jupyterlab_code_formatter 0.7.0 py_0 conda-forge
jupyterlab_server 1.0.6 py_0 conda-forge
libffi 3.2.1 he1b5a44_1006 conda-forge
libgcc-ng 9.1.0 hdf63c60_0
libsodium 1.0.17 h516909a_0 conda-forge
libstdcxx-ng 9.1.0 hdf63c60_0
libuv 1.33.1 h516909a_0 conda-forge
markupsafe 1.1.1 py37h516909a_0 conda-forge
mistune 0.8.4 py37h516909a_1000 conda-forge
more-itertools 7.2.0 py_0 conda-forge
mypy_extensions 0.4.3 py37_0 conda-forge
nbcommands 0.3.2 py_0 conda-forge
nbconvert 5.6.1 py37_0 conda-forge
nbformat 4.4.0 py_1 conda-forge
ncurses 6.1 hf484d3e_1002 conda-forge
nodejs 12.13.0 h10a4023_0 conda-forge
notebook 6.0.1 py37_0 conda-forge
openssl 1.1.1c h516909a_0 conda-forge
packaging 19.2 py_0 conda-forge
pandoc 2.7.3 0 conda-forge
pandocfilters 1.4.2 py_1 conda-forge
parso 0.5.1 py_0 conda-forge
pathspec 0.6.0 py_0 conda-forge
pexpect 4.7.0 py37_0 conda-forge
pickleshare 0.7.5 py37_1000 conda-forge
pip 19.3.1 py37_0 conda-forge
prometheus_client 0.7.1 py_0 conda-forge
prompt_toolkit 2.0.10 py_0 conda-forge
ptyprocess 0.6.0 py_1001 conda-forge
pygments 2.4.2 py_0 conda-forge
pyparsing 2.4.4 py_0 conda-forge
pyrsistent 0.15.5 py37h516909a_0 conda-forge
python 3.7.3 h33d41f4_1 conda-forge
python-dateutil 2.8.1 py_0 conda-forge
pyzmq 18.1.0 py37h1768529_0 conda-forge
readline 8.0 hf8c457e_0 conda-forge
regex 2019.11.1 py37h516909a_0 conda-forge
send2trash 1.5.0 py_0 conda-forge
setuptools 41.6.0 py37_1 conda-forge
six 1.13.0 py37_0 conda-forge
sqlite 3.30.1 hcee41ef_0 conda-forge
terminado 0.8.2 py37_0 conda-forge
testpath 0.4.4 py_0 conda-forge
tk 8.6.9 hed695b0_1003 conda-forge
toml 0.10.0 py_0 conda-forge
tornado 6.0.3 py37h516909a_0 conda-forge
traitlets 4.3.3 py37_0 conda-forge
typed-ast 1.4.0 py37h516909a_0 conda-forge
typing_extensions 3.7.4.1 py37_0 conda-forge
wcwidth 0.1.7 py_1 conda-forge
webencodings 0.5.1 py_1 conda-forge
wheel 0.33.6 py37_0 conda-forge
xz 5.2.4 h14c3975_1001 conda-forge
zeromq 4.3.2 he1b5a44_2 conda-forge
zipp 0.6.0 py_0 conda-forge
zlib 1.2.11 h516909a_1006 conda-forge
and I am installing the extensions through the following bash script
# Choose conda and load the virtual environment
CONDA_BASE=$(conda info --base)
source $CONDA_BASE/etc/profile.d/conda.sh
conda activate jupyter-lab
# Node JS for the extensions
conda install -c conda-forge nodejs
export NODE_OPTIONS=--max-old-space-size=4096
# nbcommands
conda install -c conda-forge nbcommands
# Jupyter Lab code formatter with black
conda install -c conda-forge black jupyterlab_code_formatter
jupyter labextension install @ryantam626/jupyterlab_code_formatter
jupyter serverextension enable --py jupyterlab_code_formatter
# Jupyter widgets extension, FigureWidget and renderer support
jupyter labextension install @jupyter-widgets/jupyterlab-manager@1.0 --no-build
jupyter labextension install jupyterlab-plotly@1.0.0 --no-build
jupyter labextension install plotlywidget@1.0.0 --no-build
# Go To Definition extension
jupyter labextension install @krassowski/jupyterlab_go_to_definition --no-build
# Spell checker extension
jupyter labextension install @ijmbarr/jupyterlab_spellchecker --no-build
# Build extensions
jupyter lab build
unset NODE_OPTIONS
I don’t remember anything particularly slow prior to the update. Right now, the installation lags at jupyter labextension install @ryantam626/jupyterlab_code_formatter
or jupyter lab build
.
Is the script flawed in some way? Would it be related to this post?
Thanks in advance for your help!