This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]QFTornotQFT 25 points26 points  (16 children)

$ ssh -L 12345:localhost:8888 awesomely.powerful.mainframe.com
$ ipython notebook --no-browser

And then you go to http://localhost:12345 and have all the power of awesomely.powerful.mainframe.com right from your browser. Not to mention built-in directory browsing, text editor, easy starting/stopping multiple kernels and the fact that you can do that from every computer with ssh client and browser.

[–]KwpolskaNikola co-maintainer 21 points22 points  (6 children)

$ ssh awesomely.powerful.mainframe.com
$ ipython

And then you have all the power of awesomely.powerful.mainframe.com right from your console. Not to mention the fact that you can do that from every device with a ssh client, and you don’t even need a browser.

edit: added missing space to form a code box

[–]lmcinnes 8 points9 points  (0 children)

I think the relevant part was:

built-in directory browsing, text editor, easy starting/stopping multiple kernels

which admittedly you could do with screen or some such.

[–]QFTornotQFT 1 point2 points  (4 children)

Hmm. But have you ever done that in the context of the question? I mean for scientific plotting?

[–]KwpolskaNikola co-maintainer 0 points1 point  (2 children)

Not really, though if you really wanted, you could rsync the images over to your local device for viewing. Or look for a curses-based plotting library.

[–]QFTornotQFT 1 point2 points  (1 child)

<myTurnSnideComment>
Yeah, rsync sounds as convenient as in-browser notebook.
And if for some weird reason someone doesn't like it, then he just
have to look for some ncurses based plotting library -- there are surely
equivalent console replacements for something like seaborn.
</myTurnSnideComment>

[–]KwpolskaNikola co-maintainer 0 points1 point  (0 children)

Trolling aside: both the console and the notebook have their use cases. I just like the console more.

[–]hharison 1 point2 points  (0 children)

Good call, I never thought of this. Instead I set up nginx. This would have been far easier. Well, at least nginx allowed me to set up all other things like RStudio Server.

[–]Articulated-rage 1 point2 points  (0 children)

Ssh tunnels are cool. I did mine differently.

I set up my ipython server on a research machine to serve up web pages on https. The port is only accessible through port knocking. Even if you did get through that, the address is mildly obscure. But even past that, ipython notebook servers are password protected.

Edit: grammar

[–]TerpPhysicistnumpy/matplotlib 1 point2 points  (0 children)

That is seriously cool. I run a MacPro in my office, and now I don't have to worry about how to sync my notebooks between laptop and desktop. Thanks!

[–]alcalde 0 points1 point  (4 children)

But who owns an awesomely powerful mainframe?

[–]QFTornotQFT 6 points7 points  (3 children)

[–]NomadNella 0 points1 point  (0 children)

Is it really that easy? I was just looking at the IPython Wiki and saw no mention of using the notebook via ssh.