You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you checking the exit codes of the above commands? That might tell you if the commands succeeded or failed. You might also check if certain commands are actually working in sequence, such as first calling:
source activate environment
And checking the exit code to see if the command succeeded. If that doesn't succeed, then presumably the environment is missing or broken, which could be the source of the error. If that command succeeds, then try:
source activate environment && jupyter lab --help
And if that command succeeds, then presumably jupyter lab is installed.
When verifying the existing of
jupyter
in user's environment, we rely on this command:jupyter-forward/jupyter_forward/core.py
Line 218 in 64a2c56
However, this command isn't robust enough because having
jupyter
install doesn't necessary mean thatjupyterlab
is also installed.Due to this, when user's have
jupyter
installed andjupyterlab
is not installed, this commandjupyter-forward/jupyter_forward/core.py
Line 187 in 64a2c56
when combined with the file redirection fails silently
/bin/bash -c "source activate environment && jupyter lab --no-browser --ip=casper-login1 > None/.jupyter_forward/log_2022-03-11T15-36-40.txt 2>&1"
We should look into more robust ways to check that
jupyter lab
is installed and not justjupyter
The text was updated successfully, but these errors were encountered: