# How do I open a remote jupyter notebook with IJulia

**URL:** <https://discourse.julialang.org/t/how-do-i-open-a-remote-jupyter-notebook-with-ijulia/36764>\
**Category:** Tooling\
**Created:** [March 30, 2020, 10:09pm UTC](https://discourse.julialang.org/t/how-do-i-open-a-remote-jupyter-notebook-with-ijulia/36764 "2020-03-30T22:09:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jstrube](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jstrube/32/525_2.png) [@jstrube](https://discourse.julialang.org/u/jstrube)\
**Post date:** [March 30, 2020, 10:09pm UTC](https://discourse.julialang.org/t/how-do-i-open-a-remote-jupyter-notebook-with-ijulia/36764/1 "2020-03-30T22:09:30Z")

</div>

I frequently log into remote servers to work on large data sets. I usually run `jupyter --no-browser --port=xxx` on the server and forward the port to my local machine. In this mode, jupyter replies with the address where it starts and the token that I need to connect to the server.

When starting the `notebook()` after installing a new kernel with those command line arguments, it doesn’t tell me the port, though. Is there a way to get this information from within the REPL?

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [March 31, 2020, 2:08am UTC](https://discourse.julialang.org/t/how-do-i-open-a-remote-jupyter-notebook-with-ijulia/36764/2 "2020-03-31T02:08:54Z")

</div>

If you need to set the port or use the `--no-browser` option, you should run `jupyter` yourself, not via the `IJulia.notebook()` function (which is just a convenience wrapper around running `jupyter` — it’s not doing anything special).

(I think the default port used by `jupyter` is 8998, however. So you can normally just do `ssh -L 8778:localhost:8998 someremotehost.com`, run `jupyter notebook --no-browser` on the remote host, and then visit `localhost:8778` in the browser on your local host.)

---

<div class="post-metadata">

**Author:** ![jstrube](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jstrube/32/525_2.png) [@jstrube](https://discourse.julialang.org/u/jstrube)\
**Post date:** [March 31, 2020, 3:51am UTC](https://discourse.julialang.org/t/how-do-i-open-a-remote-jupyter-notebook-with-ijulia/36764/3 "2020-03-31T03:51:03Z")

</div>

Right, OK, thanks for confirming.
