I am trying to use jupyterlab hub on raspberries. I have seen in the logs that the “build memory error” derived from a problem with webpack. It is impossible to build even when there is no extension. I have succeeded with a dirty trick, is it acceptable ? would it be possible to build jupyterlab that way properly ?
I have installed command line
webpack-bundle-analyzer, change directory to
/usr/local/share/jupyter/lab/staging then execute :
webpack --config webpack.prod.minimize.config.js
which worked properly (or almost) yielding some informative messages on the assets size and enabling jupyterlab without error message and with available extensions :
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB). This can impact web performance. Assets: 664de3932dd6291b4b8a8c0ddbcb4c61.svg (896 KiB) 2f12242375edd68e9013ecfb59c672e9.svg (730 KiB) vendors~main.825fba72abae7de1679c.js (4.69 MiB) 2.9ccb7977a199a4a50689.js (454 KiB) 3.50663db94d152dab6429.js (883 KiB) 4.69406a7d6939b46f4e98.js (253 KiB) WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance. Entrypoints: main (4.71 MiB) vendors~main.825fba72abae7de1679c.js main.4363983affea8feaa5a7.js