HOME/🪐 Jupyter/

🪐 Python仮想環境(pipenv)でJupyter起動まで

Article Outline
TOC
Collection Outline

🔗 ~/ HOME/ Collections/

【JUPYTER】
【JUPYTER: Python】
⚫︎ ENV
⚫︎ DS
⚫︎ Static
⚫︎ ML
⚫︎ DL
⚫︎ Web

|| Python仮想環境(pipenv)でJupyter起動

  • 「pipenv」インストール

    $ pip install pipenv
  • 任意のディレクトリに任意のフォルダを作成して移動

    $ cd dev
    $ mkdir myproject
    $ cd myproject
  • Python3系指定

    $ pipenv --python 3

    $ pipenv --python 3.6 任意のバージョン指定もできる

  • 「JupyterLab」インストール

    $ pipenv install jupyterlab
  • 仮想環境起動

    $ pipenv shell
    (myproject)$ 
  • JupyterLab起動

    (myproject)$ jupyter lab

    ※ ブラウザーに立ち上がる。 ※ 終了する際は、ブラウザー側のWebUIで終了、もしくは Ctrl+C で終了。

  • 仮想環境終了

    (myproject)$ exit
    $ 

|| REFERENCE