Build the execution environment of Jupyter Lab

Essence of machine learning Python, mathematics, algorithms learned while implementing

In reading this book, a memo when building the Jupyter Lab environment on macOS Mojave (10.14.6) using pip.

It is assumed that Homebrew Python 3 is installed. The version is 3.7.5.

$ python3 --version
Python 3.7.5

Working directory and virtual environment

Prepare a working directory and a Python virtual environment.

mkdir /path/to/ml

cd /path/to/ml
python3 -m venv venv

pip updates and module installation

Update pip on the virtual environment and install the required modules.

source ./venv/bin/activate

pip install --upgrade pip

pip install jupyterlab
pip install matplotlib

Verification

Start Jupyter Lab and check.

jupyter lab

How to start after installation

Go to your working directory, activate your virtual environment and run the command.

cd /path/to/ml
source ./venv/bin/activate
jupyter lab

Recommended Posts

Build the execution environment of Jupyter Lab
Prepare the execution environment of Python3 with Docker
Execution environment on the Web by "Project Jupyter"
Preparing the execution environment of PyTorch with Docker November 2019
Change the theme of Jupyter
I wrote the basic grammar of Python with Jupyter Lab
I wrote the basic operation of Seaborn in Jupyter Lab
I wrote the basic operation of Numpy in Jupyter Lab.
I wrote the basic operation of matplotlib with Jupyter Lab
Build PyPy execution environment with Docker
I wrote the basic operation of Pandas with Jupyter Lab (Part 1)
I wrote the basic operation of Pandas with Jupyter Lab (Part 2)
How to build Python and Jupyter execution environment with VS Code
About the virtual environment of python version 3.7
Use of virtualenv, Python's independent execution environment
Display the graph of tensorBoard on jupyter
Build the fastest Django development environment with docker-compose
Setting to output the log of cron execution
Jupyter Lab begins
Simply build a Python 3 execution environment on Windows
Browser specification of Jupyter Notebook in Windows environment
Create the strongest calculator environment with Sympy + Jupyter
Instantiation of the BOX development environment created earlier
I checked the list of shortcut keys of Jupyter
Fill the browser with the width of Jupyter Notebook
Build a python environment to learn the theory and implementation of deep learning
Build Jupyter Hub
From the introduction of pyethapp to the execution of contract
Build PyPy and Python execution environment with Docker
Build a python execution environment with VS Code
Used from the introduction of Node.js in WSL environment
I want to grep the execution result of strace
The story of building the fastest Linux environment in the world
The story of sharing the pyenv environment with multiple users
[C language] [Linux] Get the value of environment variable
[Tips] Save / copy the graph displayed in Jupyter Lab
Drawing on Jupyter using the plot function of pandas
Reproduce the execution example of Chapter 4 of Hajipata in Python
How to use jupyter lab in Windows 10 local environment
Reproduce the execution example of Chapter 5 of Hajipata in Python
Setting up Jupyter Lab in a Python 3.9 venv environment
The story of using circleci to build manylinux wheels
[Python] Chapter 01-02 About Python (Execution and installation of development environment)
The beginning of cif2cell
The meaning of self
the zen of Python
Install Python Jupyter lab
The story of sys.path.append ()
Measurement of execution time
What kind of environment should people who are learning Python for the first time build?
Revenge of the Types: Revenge of types
Switch the setting value of setting.py according to the development environment
Recommendation of Jupyter Notebook, a coding environment for data scientists
Unify the environment of the Python development team starting with Poetry
Think about the analysis environment (Part 1: Overview) * As of January 2017
Measure the execution result of the program in C ++, Java, Python.
Check the operation of Python for .NET in each environment
Building a Jupyter Lab development environment on WSL2 using Anaconda3
About the garbled Japanese part of pandas-profiling in Jupyter notebook
Reflect the virtual environment created with Miniconda in Jupyter notebook
Build a Python environment and transfer data to the server