JuliaLang / IJulia.jl

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

Can't choose the port from where to spawining the server with `IJulia.notebook` #1105

Open giordano opened 6 months ago

giordano commented 6 months ago

The only work around I found is to run the following command

$(julia --compile=min --project -e 'using IJulia; println(joinpath(IJulia.Conda.SCRIPTDIR, "jupyter"))') notebook --port="${PORT}"

where ${PORT} is the desired port, but this feels less than ideal.

stevengj commented 6 months ago

Why not just run jupyter directly? Why go through julia at all? The IJulia.notbook() function is mainly a convenience for interactive users …

That being said, it is perfectly reasonable to add optional arguments to this function to let you pass additional command-line parameters.

giordano commented 6 months ago

Why not just run jupyter directly? Why go through julia at all?

Because I don't know where jupyter is installed and I don't care.