LoginSignup
3
3

More than 5 years have passed since last update.

Raspberry Pi3 にてjupyter をリモート接続

Posted at

Raspberry Pi3にてリモートでプログラムを書くのに、jupyterが使えるとクライアントPCに余計なものを入れずにブラウザでプログラムを書けるのでやってみました。

  • Raspberry Piにjupyterをインストール(結構時間がかかる)
$ sudo pip install jupyter
  • コンフィグファイルを作成
$ sudo jupyter notebook --generate-config

  • コンフィグファイル修正
$ sudo nano /root/.jupyter/jupyter_notebook_config.py

にてjupyter_notebook_config.pyを開いて、どこでもいいので

c.NotebookApp.ip = '*'

を追加して保存

  • ipアドレスを確認(192.168.1.XXXX)など
$ ifconfig
  • jupyterを立ち上げ
sudo jupyter notebook

でブラウザ立ち上がりjupyterが表示される

立ち上がったブラウザにて
http://localhost:8888/tree」 ⇒ 「http://192.168.1.XXXX:8888/tree」
でアクセスできれば、他のクライアント側PCのブラウザからでも同様にアクセスできるはずです

参考

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3