I tried expanding RAM space and it finally built successfully. So perhaps it is because of RAM space.
Every time I run jupyter lab build it takes hours to build and when it is built, it takes 3-5min for chrome to load jupyter lab pages.
I analyzed the pages and found out a vendors~main*******.js file is as big as 32.3 MB which I think is created by webpack.
I went to github issues and tried as what is mentioned. The problem is still there.
So I wonder how to make jupyterlab build faster and create vendors~main.js with smaller size.
Thanks for your help if any:).
It should not be taking literal hours, can you tell us more about your setup? Are you running dev builds (the default) or prod builds?
In our setup on a EC2 t2.small server, JupyterLab is able to build with 4 extensions (one of them quite meaty) in ~1.5min.
One thing that might be impacting you is #6804, which is fixed on master but not yet released. Try the workaround I describe there and see if it helps.
Thanks for your reply. Here’s how I install jupyterlab and hope it helps to locate the problem.
pip install jupyterlab and pip install jupyter
wget {url for latest npm} and setup ln -s for npm and node, the version ofr node is 12.x
jupyter lab install(failed)
I looked into error log. It said I don’t have python2 since I am running on Ubuntu 18.04. So I run apt install python
jupyter lab install took more than 2hours to finish so I rebooted my computer and changed webpack --config webpack.prod.config.json to webpack in package.json. It still took long time to build but finally succeeded.
jupyter lab and open chrome, the vendors~main.js shows up as big as 32MB.
I will try what you said in #6804 and will tell you whether it works.
Thanks again for your reply and help.
I tried jupyter lab build --dev-build=False and my computer is still running ( more than one hour) so it seems dev-build=False doesn’t work. Do you mean jupyter lab build --dev-build=False or jupyter labextension install XXXX --dev-build=False?
I tried to update jupyterlab it doesn’t work:joy:
I looked into log file. It should be a webpack problem. Perhaps the config file coursed the problem.
webpack.prod.config.js
I’m suffering from this issue with exactly the same symptoms and error message.
Running on a EC2 t2.micro, Ubuntu.
Fresh install of jupyterlab==1.1.4,
jupyter-client==5.3.3
jupyter-core==4.5.0
jupyterhub==1.0.0
jupyterlab==1.1.4
jupyterlab-server==1.0.6
All extensions uninstalled.
Install ipywidgets for lab with jupyter labextension install @jupyter-widgets/jupyterlab-manager@1.0 --no-build
Executed jupyter lab clean and export npm_config_max_old_space_size=4096
sudo -E jupyter lab build runs interminably long, pegs the CPU and eventually hoses the EC2 instance requiring reboot.
That’s the ticket! Running on a t2.small with --minimize=False (and all other previously recited incantations) build completes successfully in 51s and the extension operates as expected.
Thanks for the guidance.