1
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

データ分析のためのJupyterLab基礎設定 (pip)

Last updated at Posted at 2020-09-10

A JupyterLab setting procedure

A base setting with minimum packages via pip
pipによるJupyterLabの基礎設定です。

Prerequisite

  • Windows 10
  • python 3.8+
  • nodejs 10+
  • Microsoft Visual C++ 14.0 or greater (Build Tools for Visual Studio 2019)

Getting Started

JupyterLab installation

> python -m venv ENV # path/to/new/virtual/environment
  • come into the virtual environment
> cd ENV
  • activate the virtual environment
Scripts/activate
  • install jupyterlab
(ENV) > pip install jupyterlab

Extensions

(ENV) > pip install ipywidgets
(ENV) > jupyter nbextension enable --py widgetsnbextension
(ENV) > jupyter labextension install @jupyter-widgets/jupyterlab-manager
(ENV) > jupyter labextension install @lckr/jupyterlab_variableinspector
(ENV) > jupyter labextension install @jupyterlab/toc
(ENV) > jupyter labextension install jupyterlab_filetree
(ENV) > jupyter labextension install @krassowski/jupyterlab_go_to_definition
(ENV) > pip install jupyter-lsp
(ENV) > jupyter labextension install @krassowski/jupyterlab-lsp
(ENV) > pip install python-language-server[all]
(ENV) > jupyter labextension install @ryantam626/jupyterlab_code_formatter
(ENV) > pip install jupyterlab_code_formatter
(ENV) > jupyter serverextension enable --py jupyterlab_code_formatter
(ENV) > pip install jupytext --upgrade
(ENV) > jupyter labextension install jupyterlab-jupytext
  • git: git control with jupyterlab
(ENV) > pip install --upgrade jupyterlab-git
(ENV) > jupyter lab build
  • github: github browsing via jupyterLab
(ENV) > jupyter labextension install @jupyterlab/github
(ENV) > jupyter labextension install @jupyterlab/shortcutui

Other standard packages

(ENV) > pip install numpy pandas scipy matplotlib seaborn statsmodels

Add a new kernel

(ENV) > ipython kernel install --user --name=ENV

Launch

  • Launch jupyterlab
(ENV) > jupyter lab

Save requirements file

(ENV) > pip freeze > requirements.txt
1
5
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
1
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?