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 | ||
jupyter [2020/03/24 16:27] – ↷ Nom de la page changé de apprendre_python_avec_jupyter à jupyter serge | jupyter [2020/03/26 12:45] (Version actuelle) – [Exécution] serge | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
====== Jupyter ====== | ====== Jupyter ====== | ||
- | <WRAP center round todo 60%> | + | <WRAP center round info 60%> |
- | **En travaux !** | + | **Sur Debian 10 Buster, installer jupyter avec les dépôts** |
</ | </ | ||
Ligne 13: | Ligne 13: | ||
=== Linux === | === Linux === | ||
sudo pip3 install jupyter | sudo pip3 install jupyter | ||
- | sudo pip3 uninstall ipykernel | ||
- | sudo pip3 install ipykernel | ||
| | ||
+ | ===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 ==== | ==== Exécution ==== | ||
jupyter notebook | jupyter notebook | ||
ouvre un onglet dans votre navigateur Web, avec un navigateur de fichier ouvert sur votre home: | ouvre un onglet dans votre navigateur Web, avec un navigateur de fichier ouvert sur votre home: | ||
- | {{ : | + | {{ : |
=====Premier NoteBook===== | =====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 | ||
+ | {{ : | ||
- | {{tag>apprendre | + | En dessous de chaque bloc, est affiché la sortie terminal du bloc. |
+ | {{tag> |
jupyter.txt · Dernière modification : 2020/03/26 12:45 de serge