====== Jupyter Notebook ======
* [[https://jupyter.org]]
Vidéos :
* [[https://www.youtube.com/watch?v=HW29067qVWk|Corey Schafer - Jupyter Notebook Tutorial: Introduction, Setup, and Walkthrough]]
===== 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 =====
* [[https://jupyter.org/install]]
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 :
{{:python:capture_d_ecran_2022-11-04_153350.jpg|}}
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**
{{:python:capture_d_ecran_2022-11-04_142616.jpg|}}
Créer un fichier **.ipynb** dans le dossier.