Outils pour utilisateurs

Outils du site


python:jupyter

Jupyter Notebook

Installation sous Linux

Créer un environnement virtuel :

mkdir jupyter
cd jupyter
 
python3 -m venv venv
. venv/bin/activate

Installer Jupyter :

pip install jupyter

Installation sous Windows

Créer un environnement virtuel :

mkdir jupyter
cd jupyter
 
python3 -m venv venv
. venv/Scripts/activate

Installer Jupyter :

pip install jupyter
:!: Erreur sous Python 32bits ⇒ utiliser Python 64bits évite ce problème :!:

Cargo, the Rust package manager, is not installed or is not on PATH.
This package requires Rust and Cargo to compile extensions. Install it through
the system's package manager or via https://rustup.rs/

Lancement du serveur local

$ jupyter notebook

Utilisation dans VSCode

Source: https://code.visualstudio.com/docs/datascience/jupyter-notebooks

Installer cette extension :

Dans VSCode, ouvrir le dossier où l'on a créé l'environnement virtuel.

Taper Shift+Ctrl+P puis Python: Select interpreter, et sélectionner celui qui se trouve dans l'environnement virtuel local ⇒ .\venv\Scripts\python.exe

Créer un fichier .ipynb dans le dossier.

python/jupyter.txt · Dernière modification: 2022/11/04 14:34 par marclebrun