jupyter notebook --generate-config
JUPYTER_CONFIG_DIR=~/.jupyter_save jupyter notebook --generate-config

http://bit.ly/jupyter_profile

c = get_config()
### If you want to auto-save .html and .py versions of your notebook:
# modified from: https://github.com/ipython/ipython/issues/8009
import os
from subprocess import check_call

def post_save(model, os_path, contents_manager):
    """post-save hook for converting notebooks to .py scripts"""
    if model['type'] != 'notebook':
        return # only do this for notebooks
    d, fname = os.path.split(os_path)
    check_call(['ipython', 'nbconvert', '--to', 'script', fname], cwd=d)
    check_call(['ipython', 'nbconvert', '--to', 'html', fname], cwd=d)

c.FileContentsManager.post_save_hook = post_save

In [9]:
#load /root/.jupyter_save/jupyter_notebook_config.py

In [10]:
!ls


2016-12-20-RMS-JupShow.ipynb
2017-01-05-RAL+Explorando+Jupyter+notebook+buitins.ipynb
2017-01-05-RAL+Ferramentas+de+Edicao+HTLM+Notebook.ipynb
2017-01-05-RAL+Inclusao+de+formulas+Latex.ipynb
2017-01-05-RAL+Tentativa+de+fazer+funcoes+de+display+de+imagems+usando+skimage.ipynb
Autosave-other-formats.ipynb
Untitled.ipynb
Working%20With%20Markdown%20Cells.ipynb
widgets_ImageProcessing.ipynb
widgets_Using Interact.ipynb

In [11]:
!ls


2016-12-20-RMS-JupShow.ipynb
2017-01-05-RAL+Explorando+Jupyter+notebook+buitins.ipynb
2017-01-05-RAL+Ferramentas+de+Edicao+HTLM+Notebook.ipynb
2017-01-05-RAL+Inclusao+de+formulas+Latex.ipynb
2017-01-05-RAL+Tentativa+de+fazer+funcoes+de+display+de+imagems+usando+skimage.ipynb
Autosave-other-formats.ipynb
Untitled.ipynb
Working%20With%20Markdown%20Cells.ipynb
widgets_ImageProcessing.ipynb
widgets_Using Interact.ipynb

Open the file at ~/.jupyter_save/jupyter_notebook_config.py

alias jupyter_save='JUPYTER_CONFIG_DIR=~/.jupyter_save jupyter notebook'

In [ ]: