How to change the Jupyter start-up folder

Jupyter Notebook and JupyterLab < 3.0 For old Jupyter Notebook interface installed with notebook package and run as jupyter notebook (see the next section for the identical interface installed with nbclassic and run with jupyter nbclassic, and for JupyterLab): Open cmd (or Anaconda Prompt) and run jupyter notebook –generate-config. This writes a file to C:\Users\username\.jupyter\jupyter_notebook_config.py. … Read more

Show DataFrame as table in iPython Notebook

You’ll need to use the HTML() or display() functions from IPython’s display module: from IPython.display import display, HTML # Assuming that dataframes df1 and df2 are already defined: print “Dataframe 1:” display(df1) print “Dataframe 2:” display(HTML(df2.to_html())) Note that if you just print df1.to_html() you’ll get the raw, unrendered HTML. You can also import from IPython.core.display … Read more

Conda environments not showing up in Jupyter Notebook

I don’t think the other answers are working any more, as conda stopped automatically setting environments up as jupyter kernels. You need to manually add kernels for each environment in the following way: source activate myenv python -m ipykernel install –user –name myenv –display-name “Python (myenv)” As documented here:http://ipython.readthedocs.io/en/stable/install/kernel_install.html#kernels-for-different-environments Also see this issue. Addendum: You … Read more