Skip to content

Instantly share code, notes, and snippets.

@OsamaMahmood
Last active September 28, 2023 06:53
Show Gist options
  • Save OsamaMahmood/2cf83a4d056707843f443baa38483f52 to your computer and use it in GitHub Desktop.
Save OsamaMahmood/2cf83a4d056707843f443baa38483f52 to your computer and use it in GitHub Desktop.

Dependencies:

sudo apt-get update -y
sudo apt-get install build-essential libssl-dev libpq-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip -y
sudo apt-get install python3-pip python3-dev python3-venv -y
sudo apt-get install nano -y
sudo apt-get install git -y

Installation

sudo python3 -m pip install jupyter
sudo apt autoremove -y

Generate Jupyter Config:

jupyter notebook --generate-config

Create your default password For Our configuration

ipython -c "from notebook.auth import passwd; passwd()"

Edit Config

sudo nano /home/user/.jupyter/jupyter_notebook_config.py

c = get_config()
c.IPKernelApp.pylab = 'inline' # if you want plotting support always in your notebook
c.NotebookApp.allow_origin = '' # put your public IP Address here
c.NotebookApp.ip = '
'
c.NotebookApp.allow_remote_access = True
c.NotebookApp.open_browser = False
c.NotebookApp.password = u'sha1:af16706d1820:cc9fc8357e8e12009c3eb264508aa5fd8616fea8'
c.NotebookApp.port = 8888

@OsamaMahmood
Copy link
Author

Hi Stephan,

I haven't worked that much on Azure will have to look at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment