jupyter
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
apprendre_python_avec_jupyter [2020/03/23 10:54] – serge | jupyter [2020/03/26 12:45] (Version actuelle) – [Exécution] serge | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== | + | ====== |
+ | <WRAP center round info 60%> | ||
+ | **Sur Debian 10 Buster, installer jupyter avec les dépôts** | ||
+ | </ | ||
- | {{tag>apprendre | + | ===== Jupyter ===== |
+ | * Jupyter n'a rien à voir avec **[[https:// | ||
+ | * **[[https:// | ||
+ | * **[[https:// | ||
+ | ===== Installation de jupyter ===== | ||
+ | === Linux === | ||
+ | sudo pip3 install jupyter | ||
+ | |||
+ | ===Ré-installation=== | ||
+ | sudo python3 -m pip uninstall -y jupyter jupyter_core jupyter-client jupyter-console notebook qtconsole nbconvert nbformat | ||
+ | sudo pip3 install jupyter | ||
+ | |||
+ | ===Bug debian 10 ?=== | ||
+ | sudo apt install python3-ipykernel | ||
+ | |||
+ | < | ||
+ | extrait .. | ||
+ | |||
+ | Dépaquetage de python3-ipykernel (4.9.0-1) ... | ||
+ | Paramétrage de python3-prompt-toolkit (1.0.15-1) ... | ||
+ | Paramétrage de python3-tornado (5.1.1-4) ... | ||
+ | Paramétrage de python3-ipython-genutils (0.2.0-1) ... | ||
+ | Paramétrage de python3-zmq (17.1.2-2) ... | ||
+ | Paramétrage de python3-pickleshare (0.7.5-1) ... | ||
+ | Paramétrage de python3-traitlets (4.3.2-1) ... | ||
+ | Paramétrage de python3-dateutil (2.7.3-3) ... | ||
+ | Paramétrage de python3-simplegeneric (0.8.1-2) ... | ||
+ | Paramétrage de python3-jupyter-core (4.4.0-2) ... | ||
+ | Paramétrage de python3-ipython (5.8.0-1) ... | ||
+ | Paramétrage de python3-jupyter-client (5.2.3-1) ... | ||
+ | Paramétrage de python3-ipykernel (4.9.0-1) ... | ||
+ | </ | ||
+ | ==== Exécution ==== | ||
+ | jupyter notebook | ||
+ | ouvre un onglet dans votre navigateur Web, avec un navigateur de fichier ouvert sur votre home: | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | =====Premier NoteBook===== | ||
+ | |||
+ | Le notebook à coller, décompressé, | ||
+ | {{: | ||
+ | |||
+ | Le fichier *.ipynb converti en python | ||
+ | <code python hello.py> | ||
+ | # | ||
+ | # coding: utf-8 | ||
+ | |||
+ | # # Hello World | ||
+ | |||
+ | # Affichage de " | ||
+ | # | ||
+ | # Maj + Entrée ou clic sur Run | ||
+ | |||
+ | # In[1]: | ||
+ | |||
+ | print(' | ||
+ | |||
+ | # In[2]: | ||
+ | |||
+ | for i in range(0, 2): | ||
+ | print(" | ||
+ | |||
+ | # In[4]: | ||
+ | |||
+ | for i in range(5, 10): | ||
+ | print(" | ||
+ | </ | ||
+ | |||
+ | Après Exécution sur chaque bloc | ||
+ | {{ : | ||
+ | |||
+ | En dessous de chaque bloc, est affiché la sortie terminal du bloc. | ||
+ | {{tag> |
jupyter.1584960879.txt.gz · Dernière modification : 2020/03/23 10:54 de serge