JuliaLang / IJulia.jl

Julia kernel for Jupyter
MIT License
2.78k stars 409 forks source link

notebook() with no X server and elink #1100

Closed gl-yziquel closed 9 months ago

gl-yziquel commented 9 months ago

I've tried doing using IJulia followed by notebook(). As I usually work over ssh in a terminal without X, it launched ~/.local/bin/jupyter notebook which launched the web browser, which here is... elinks.

So, bottom line: the julia repl freezes, as it waits for elinks to terminate. And elinks is moreover not displayed in the julia repl.

Question: would it not be possible to detect whether or not X is running before trying to launch jupyter notebook ? Or fine tune somewhat the jupyter notebook invocation ?

A way to call jupyter notebook --no-browser would be perfect.

More info:

julia> versioninfo()
Julia Version 1.11.0-DEV.203
Commit ec8df3da35 (2023-07-31 19:24 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 8 × Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, skylake)
  Threads: 1 on 8 virtual cores
gl-yziquel commented 9 months ago

Ahhhh...

notebook(detached=true)

Fixed.