Closed neomatrix369 closed 4 years ago
I'm basing my docker images on this https://github.com/8080labs/bamboolib_binder_template/blob/master/Dockerfile - and will add some more things to help the end user
The main issue seems so have been related to your setup, more specifically the JupyterLab extension nbdime-jupyterlab
(see also #18).
The best way to avoid such errors is to either create a new virtual environment (though conda, venv, or alike) or to use Docker.
Happy to start a discussion about how to provide better instructions & help on how to install bamboolib inside a new virtual environment or Docker :)
The main issue seems so have been related to your setup, more specifically the JupyterLab extension
nbdime-jupyterlab
(see also #18). The best way to avoid such errors is to either create a new virtual environment (though conda, venv, or alike) or to use Docker.Happy to start a discussion about how to provide better instructions & help on how to install bamboolib inside a new virtual environment or Docker :)
The issues I faced with the license key not being saved isn't related to what you say.
Also, it's good to have support for isolate environment runtime i.e. via Docker or the likes. I have seen often the suggestions like install virtualenv, pip conda, anconda pip and the likes could lead to a lot of time and resources spent to get things to work. Some user is bound to have unexpected dependency conflicts or might just not want to manage another environment.
A docker-like solution is easy to kickstart and works consistently everywhere (more reliable say)
When I kicked off the docker solution in this PR, I was free from any of the other issues I reported.
The license key not getting saved is a different thing in hand.
I would say instead of instructions, please provide shell scripts or installation programs that get bamboolib
running with a single or couple of steps (either Docker or shell scripts or binary installer).
This way everyone can run them exactly the same way in their environment and also contribute back (and it's version controlled) - unlike instructions which can be interpreted differently at times.
A good example is see https://bit.ly/better-nlp-launch, you have many ways to kick off the notebooks and get the library working, without having to install much or anything at all - consistently and reliably, given it need some fiddly dependencies to get to work correctly
Environment
macos
3.7.2
pip
If bamboolib is used with JupyterLab: JupyterLab extensions:
jupyter labextension list
Build recommended, please run
jupyter lab build
: bamboolib needs to be included in build plotlywidget needs to be included in build @8080labs/qgrid needs to be included in build @jupyter-widgets/jupyterlab-manager needs to be included in build jupyterlab-plotly changed from file:../extensions/jupyterlab-plotly-1.5.2.tgz to file:../extensions/jupyterlab-plotly-1.5.4.tgz[LabBuildApp] JupyterLab 1.2.7 [LabBuildApp] Building in /Users/swami/.local/share/jupyter/lab [LabBuildApp] Building jupyterlab assets (build:prod) [LabBuildApp] WARNING | The extension "nbdime-jupyterlab" is outdated.
An error occured. RuntimeError: JupyterLab failed to build See the log file for details: /var/folders/lv/qn495mln6h79dkh4b6j3rclm0000gn/T/jupyterlab-debug-1u0e_k9s.log
... [LabBuildApp] > node /Users/swami/.local/lib/python3.7/site-packages/jupyterlab/staging/yarn.js run build:prod [LabBuildApp] yarn run v1.15.2 $ ensure-max-old-space webpack --config webpack.prod.config.js ModuleNotFoundError: Module not found: Error: Can't resolve 'es6-promise/auto' in ... ...