メモ JupyterLab から pip パッケージインストール
Google Cloud Platform に最近追加された Jupyter Notebook で pip パッケージをインストールしたい。普通に terminal から pip intall しても反映されなかった。調べたところ、JupyerLabコンソール内で以下を打てばよいとわかった。実際にうまくいったのでメモ。
```python
# Install a pip package in the current Jupyter kernel
import sys
!{sys.executable} -m pip install numpy
```
情報源:
http://jakevdp.github.io/blog/2017/12/05/installing-python-packages-from-jupyter/