0
3

More than 5 years have passed since last update.

jupyterでpipを使って必要モジュールを共有する

Last updated at Posted at 2017-12-22

Jupyter Notebookを他の人と共有する機会があると、noebookだけで完結させたいのに、requirements.txtを作成したりするのは面倒です。

もっとシンプルに共有したい

そこでnotebookで必要なモジュールを記録に残す場合には、jupyterの!機能を使って、シェルを叩く方法があります。

! pip install

もしくは、pythonからpipを呼び出すことができます。

import pip
pip.main(['install', 'somethingpy'])

スムーズな共同作業ができそうです。

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