GNU/Linux >> Linux Esercitazione >  >> Panels >> Panels

Come installare Jupyter Notebook su Ubuntu 16.04

Ti mostreremo come installare Jupyter su Ubuntu 16.04. Jupyter Notebook è un'app Web interattiva e open source che puoi utilizzare per creare documenti che contengono codice live, equazioni, visualizzazioni e testo esplicativo. Jupyter Notebook supporta più di 40 linguaggi di programmazione. Installare Jupyter su Ubuntu 16.04 è un compito abbastanza semplice e non dovrebbero volerci più di 10 minuti per completare l'installazione. Iniziamo.

1. Accedi al tuo server Ubuntu e avvia una nuova sessione dello schermo

Prima di tutto, accedi al tuo Ubuntu 16.04 VPS tramite SSH come utente root:

ssh root@IP_address

e avvia una nuova sessione dello schermo

screen -U -S jupyter

2. Installa Python e Pip

Assicurati che l'elenco dei pacchetti del tuo sistema operativo e i pacchetti del sistema operativo siano aggiornati eseguendo i seguenti comandi:

apt-get update && apt-get upgrade

Installa Python, Python Pip e Python Development:

apt-get -y install python2.7
apt-get -y install python-pip
apt-get -y install python-dev

Per verificare di aver installato Python, esegui:

python --version

e dovresti vedere qualcosa di simile al seguente:

Python 2.7.12

Per verificare se pip è installato sul tuo server, puoi eseguire il seguente comando:

 pip --version

Se pip è installato, dovresti vedere qualcosa di simile al seguente:

pip 8.1.1 from /usr/lib/python2.7/dist-packages (python 2.7)

L'output di questo comando potrebbe essere diverso a seconda della versione di pip che stai utilizzando.

3. Installa IPython

Per installare IPython, esegui il seguente comando:

apt-get -y install ipython ipython-notebook

4. Installa Jupyter Notebook su Ubuntu 16.04

Per installare Jupyter Notebook, eseguire il comando seguente:

pip install jupyter

Potresti ricevere il seguente errore quando tenti di installare Jupyter, a seconda della versione di pip attualmente presente nel repository apt-get di Ubuntu

You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Per aggiornare pip all'ultima versione disponibile, puoi eseguire il seguente comando:

pip install --upgrade pip

Una volta che hai l'ultima versione di pip, prova a installare nuovamente Jupyter eseguendo il comando:

pip install jupyter

5. Esegui Jupyter Notebook

Hai fatto! Ora puoi eseguire Jupyter Notebook. Per avviarlo (eseguirlo) effettivamente, inserisci il seguente comando:

jupyter notebook

Il server Notebook è in ascolto su localhost per impostazione predefinita. Se vuoi che sia visibile a tutte le macchine sulla tua LAN, istruiscilo semplicemente ad ascoltare su tutte le interfacce:

jupyter notebook --ip='*'

Se hai JavaScript installato sul tuo server e se stai tentando di eseguire Jupyter, potrebbe darti un errore "Jupyter Notebook richiede JavaScript", anche se Jupyter continuerà a funzionare correttamente.

Jupyter Notebook requires JavaScript.
Please enable it to proceed.
.....

Premi "Q" per ignorare questo errore.

Per accedere a Jupyter Notebook, navigare nel browser Web all'indirizzo http://127.0.0.1:8888. Per impostazione predefinita, il server del notebook si avvia sulla porta 8888. Puoi anche specificare una porta manualmente.

Congratulazioni. Hai installato con successo Jupyter Notebook su Ubuntu 16.04 VPS che esegue Python. Per ulteriori dettagli, vedere Esecuzione del notebook.

Naturalmente, non è necessario Installare Jupyter su Ubuntu 16.04 , se utilizzi uno dei nostri servizi di hosting VPS Ubuntu 16.04, nel qual caso puoi semplicemente chiedere ai nostri esperti amministratori Linux di installare Jupyter per te. Sono disponibili 24 ore su 24, 7 giorni su 7 e si prenderanno immediatamente cura della tua richiesta. Per ulteriori aggiornamenti, puoi anche controllare Come installare Jupyter su Ubuntu 18.04 o Come installare Jupyter Notebook su Ubuntu 20.04.

PS. Se ti è piaciuto questo post, sull'installazione di Jupyter Notebook su Ubuntu 16.04, condividilo con i tuoi amici sui social network utilizzando i pulsanti qui sotto o lascia semplicemente una risposta. Grazie.


Panels
  1. Come installare ISPConfig 3 su Ubuntu 18.04

  2. Come installare Webmin su Ubuntu 18.04

  3. Come installare Panda3D su Ubuntu 10.04

  4. Come installare R su Ubuntu 16.04

  5. Come installare Jupyter su Debian 9

Come installare Jupyter Notebook su Ubuntu 22.04 | 20.04

Come installare Jupyter su Ubuntu 18.04 LTS

Come installare Jupyter Notebook su Ubuntu 20.04 LTS

Come installare Go in Ubuntu 20.04

Come installare il notebook Jupyter su Ubuntu 22.04

Come installare Vai su Ubuntu 22.04