I had to update my OS, but now I can't make jupyter-forward function as expected.
This also required reinstalling jupyter-forward which I did, but now after launching I go through Authentication, sanity checks, Checking $TMPDIR and $HOME on casper, but get hung here , where nothing seems to happen.
*******Launching Jupyter Lab *******
sh -l -c "jupyter lab --no-browser --ip=\$(hostname -f) >& $TMPDIR/.jupyter_forward/log.2022-02-11T09-36-38"
:rainy: Parsing $TMPDIR/.jupyter_forward/log.2022-02-11T09-36-38 log file on
casper.ucar.edu for jupyter information
Am I missing an additional setup step?
Which version of jupyter-forward are you running?
jupyter-forward --version
Also, does the following command seem to work on Casper?
sh -l -c "jupyter lab --no-browser --ip=\$(hostname -f)"
@Anderson Banihirwe I'm using version 2022.1.15
on Casper I get the following
Variable name must contain alphanumeric characters.
ah sorry, it seems to work from bash
[I 15:22:12.065 LabApp] [nb_conda_kernels] enabled, 8 kernels found
[I 15:22:15.376 LabApp] The port 8888 is already in use, trying another port....
[I 15:22:18.666 LabApp] http://casper-login1:8923/
[I 15:22:18.666 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
on Casper I get the following
Variable name must contain alphanumeric characters.
ah sorry, it seems to work from bash
Is tcsh
your default shell on Casper? I am asking because I use bash and I was unable to reproduce the error.
We tried to make jupyter-forward
shell agnostic (with a bias towards bash :smile:). It has become clear that some syntax can't directly be shell agnostic and we may have to do some refactoring to accommodate the syntax that is too specific to a shell.
yes, tcsh is my default shell, but I try to remember to switch to bash for anything python related.
so, back to my fist question, how do I lauch a jupyter notebook from the comand line, as before? Currently my juypter-forward command gets hun here
(******* Launching Jupyter Lab ********
sh -l -c "conda activate lens-py && jupyter lab --no-browser --ip=\$(hostname -f) >& $TMPDIR/.jupyter_forward/log.2022-02-20T06-17-27"
:partly_sunny:️ Parsing $TMPDIR/.jupyter_forward/log.2022-02-20T06-17-27 log file on
casper.ucar.edu for jupyter information)
@Will Wieder, the latest release of jupyter-forward
(v2022.2.25
) includes better tcsh/csh
support. When you get a chance could you give it a try?
Thanks @Anderson Banihirwe I updated to this new version and can now launch a notebook successfully!
Will Wieder said:
Thanks Anderson Banihirwe I updated to this new version and can now launch a notebook successfully!
We (mostly @Anderson Banihirwe) also added some continuous integration tests to github that run on a variety of shells, so hopefully we will stop pushing commits that break tcsh
support from here on out. It should be noted that the --launch-command
option doesn't work with tcsh
yet, but there's an issue ticket open already and hopefully we can address it soon
Last updated: May 16 2025 at 17:14 UTC