LoginSignup
0
0

More than 5 years have passed since last update.

Jupyter > 外部コマンド実行 > !top > 出力がセルに逐次追加される > Kernel:Interruptで止める

Last updated at Posted at 2018-01-06
動作環境
GeForce GTX 1070 (8GB)
ASRock Z170M Pro4S [Intel Z170chipset]
Ubuntu 16.04 LTS desktop amd64
TensorFlow v1.2.1
cuDNN v5.1 for Linux
CUDA v8.0
Python 3.5.2
IPython 6.0.0 -- An enhanced Interactive Python.
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu)
scipy v0.19.1
geopandas v0.3.0
MATLAB R2017b (Home Edition)
ADDA v.1.3b6

前置き

2017年11月20日: 「デュアルモニタになり(27インチx2)、快適快適」
2018年01月06日: 「画面足りない(*1, *2)」

*1)生産性を上げる。プログラマによる個人的健康管理術。> 机配置編
の前面に二つのモニタ、机の左側にMacbook Airの状態

*2) Sublime Text(ADDA用bash scriptとPython scriptを実装)とJupyter(+Matplotlib)とChrome(QiitaとmindmupとGitHub)とYouTubeを開くと足りない。MATLAB開くとさらに足りない。

Jupyter Notebook実行ターミナルが占有されるので、Jupyter上でコマンドを実行することにした。

Jupyterの外部コマンド実行

一回限りの外部コマンド

Sublime Textやgitなどの一回限りのコマンド実行

Jupyter
!subl res.qext_TMT_180106.txt

起動済のSublime Textにファイルが表示されるので問題ない。

lsやgitなども実行できる。

繰り返し処理の外部コマンド実行

Jupyter
!top

セル内に処理結果が逐次追記されていく。
Kernel > Interruptで止めないと困ったことになる。

0
0
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
0
0