![]() ![]() Fortunately, we opened up SSH with a tunnel… Open the Notebook in Your Browser If you actually want to use it, howerver, you need a better browser. This means that the iPython HTML notebook is up and running. If you’re using X forwarding, this will open up the elinks text browser, which is woefully incapable of handling the HTML notebook. Once there, cd to the directory where your data is and type ipython notebook -pylab=inline Now open your connection and login to the remote machine. Here’s how you do that with a command-line ssh client: ssh -L8888:127.0.0.1:8888 how you do it with PuTTY: But using SSH port forwarding, we can connect to 127.0.0.1:8888 from a remote machine. If you’re sitting in front of the computer, you get to port 8888 by using the loopback address 127.0.0.1:8888.ġ27.0.0.1 is only available locally. This leads us to… Forwarding Port 8888īy default, the HTML notebook serves HTTP on port 8888. It’s perfectly usable like this, but I also didn’t want to set up an X server on the conference room computer. If you have a local X server, you can check to see if this works: ssh -Y notebook -pylab=inlineįirefox should pop up with the HTML notebook. Python -measy_install -prefix /gpfs/home/asdf1234/local pyzmq python -measy_install -prefix /gpfs/home/asdf1234/local tornado. ![]() Make a directory for your personal Python packages:Įxport PYTHONPATH=$HOME/local/lib/python2.7/site-packages.On the plus side, you do have easy_install, so setting up these dependencies isn’t too hard. The ipython that comes for free on the cluster doesn’t support the HTML notebook because the python/2.7 module doesn’t have tornado or pyzmq. In the rest of this post, I’ll explain each of the moving parts. Magic in this case means running the iPython HTML notebook on the cluster, forwarding the HTTP port that the HTML notebook uses, and displaying the session in a web browser running locally. I didn’t have the time or inclination to try to set up the iPython HTML notebook on the conference room computer for yesterday’s demo, but I really wanted to use the HTML notebook. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |