Jupyter Notebook




remote conneciton to jupyet on another machine
ssh -NL 8888:localhost:8888 username@172.26.36.128


$ jupyter notebook --port=8889
gcloud compute ssh mortezas-instance-1 --zone=us-central1-a -- -NL 8889:localhost:8889




?? np.abs          # opens window with definition of function and full source code

Shift-tab
  1. what parameters you need to pass to the method
  2. What the method does
  3. more info

ESC    # to enter command mode on a cell
m      # convert cell to markdown

ENTER # to enter edit mode



Shift-Enter : Run a cell

$ jupyter --config-dir
$ vim nbconfig/notebook.json
{
  "MarkdownCell": {
    "cm_config": {
      "lineWrapping": true
    }
  },
  "CodeCell": {
    "cm_config": {
      "lineWrapping": true
    }
  }
}

mkdir  ~/.jupyter/custom
vim ~/.jupyter/custom/custom.css
.container { width:100% !important; }




Comments