官术网_书友最值得收藏!

Tunneling in to IPython

IPython is an easy and convenient way to edit code through a web browser. If you are working on a desktop computer, you can just launch IPython and point your browser to localhost:8888. This is the port that the IPython server, Jupyter, runs on. However, if you are working on a cloud server, then a common way to work with code is to tunnel in to IPython using SSH. Tunneling in to IPython involves the following steps:

  1. In your SSH client, set your destination port to localhost:8888. In PuTTY, go to Connection | SSH | Tunnels.
  2. Set the source port to anything above 8000 to avoid conflicting with other services. Click Add. Save these settings and open the connection. Log in to your droplet as usual.
  3.  Start the IPython server by typing jupyter notebook into Command Prompt of your server instance.
  4. Access IPython by pointing your browser to localhost: source portfor example, localhost:8001.
  5. Start the IPython server.

Note that you may need a token to access the server for the first time. This is available from the command output once you start Jupyter. You can either copy the URL given in this output directly into your browser's address bar, changing the port address to your local source port address, for example: 8001, or you can elect to paste the token, the part after token=, into the Jupyter start-up page and replace it with a password for future convenience. You now should be able to open, run, and save IPython notebooks. 

主站蜘蛛池模板: 包头市| 宽城| 冀州市| 安平县| 荆门市| 垣曲县| 西峡县| 塔河县| 遂宁市| 五大连池市| 新疆| 呼伦贝尔市| 工布江达县| 岱山县| 昭觉县| 清苑县| 莒南县| 冕宁县| 达孜县| 连江县| 汉寿县| 洞头县| 张掖市| 龙陵县| 顺昌县| 墨江| 突泉县| 石河子市| 北辰区| 定日县| 大同县| 交口县| 浏阳市| 三河市| 苏尼特右旗| 晋中市| 晴隆县| 青岛市| 莫力| 鄢陵县| 宿迁市|