I had the same issue with srun 打開 jupyter notebook. Turns out I needed to specify the python environment. Try this:
`srun --pty --nodes=1 --ntasks=1 --cpus-per-task=4 --mem=8G /path/to/your/python_env/bin/jupyter notebook --no-browser --port=8888`
Also, yeah, port forwarding is a must. Use `ssh -L 8888:localhost:8888 user@cluster`.
`srun --pty --nodes=1 --ntasks=1 --cpus-per-task=4 --mem=8G /path/to/your/python_env/bin/jupyter notebook --no-browser --port=8888`
Also, yeah, port forwarding is a must. Use `ssh -L 8888:localhost:8888 user@cluster`.
