This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
en:programmation-jupyter [2020/02/06 20:20] admin |
en:programmation-jupyter [2020/12/15 16:09] admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Jupyter notebook ===== | ===== Jupyter notebook ===== | ||
- | Veuillez sécuriser votre notebook en utilisant la procédure qui suit. | + | You should secure your jupyter netbook. You can follow this procedure. |
- | création du fichier de configuration | + | Create |
jupyter notebook --generate-config | jupyter notebook --generate-config | ||
- | Création du mot de passe pour le notebook. | + | Create jupyter password |
jupyter notebook password | jupyter notebook password | ||
- | Création d'un certificat qui est valide pour 365 jours. Ajustez la durée selon les besoins. | + | |
+ | Create a certificate that is valid for 365 days. Adjust the number of days for your needs. | ||
cd ~/.jupyter | cd ~/.jupyter | ||
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout mykey.key -out mycert.pem | openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout mykey.key -out mycert.pem | ||
- | Vous pouvez maintenant démarrer | + | You can start jupyter |
jupyter notebook --certfile=~/ | jupyter notebook --certfile=~/ | ||
- | Si vous préférer utiliser un navigateur web sur un autre ordinateur pour se connecter au serveur jupyter, vous pouvez utiliser cette commande: | + | If you prefer to use a browser on a different machine, for example a laptop, you can use this command instead: |
jupyter notebook --certfile=~/ | jupyter notebook --certfile=~/ | ||
- | Cette commande ne démarrera pas de navigateur web en même temps que le serveur et autorise n'importe quel ordinateur qui est en mesure de rejoindre le serveur de s'y connecter. | + | This command won't automatically start a browser and will allow any computer to connect to the jupyter server. Look at the statup log to see which port to connect to. |
- | Si vous voulez que cette configuration | + | If you want this configuration |
< | < | ||
echo " | echo " | ||
Line 33: | Line 34: | ||
</ | </ | ||
- | Vous pourrez maintenant démarrer le notebook comme suit: | + | You can then start jupyter with a shorter command. |
jupyter notebook | jupyter notebook | ||
- | Si vous avez l'intention d' | + | If you intend to use jupyter remotely from a laptop that's not on our network, you'll have to create an ssh tunnel |
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||