LoginSignup
0
0

More than 5 years have passed since last update.

JavaScript for AutomationでIpythonを起動

Posted at

Yosemiteからの新機能で、Macがシステム標準で、JavaScriptを使って、操作できるようになったそうです。

とりあえず、Ipythonを起動するコードを書いてみました。超ニッチですが、、、
こうしておくと、Spotlight検索で一発で呼び出せて便利です。


var Terminal = Application("Terminal");
Terminal.activate();

var tab = Terminal.doScript("workon dev");//Pythonの仮想環境を立ち上げる
Terminal.doScript("Ipython --pylab", {in:tab});

あとは、Pythonのモジュール読み込むためのファイルを作っておけばいろいろと捗りそう。

参考

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