How do I get the current IPython / Jupyter Notebook name

adding to previous answers, to get the notebook name run the following in a cell: %%javascript IPython.notebook.kernel.execute(‘nb_name = “‘ + IPython.notebook.notebook_name + ‘”‘) this gets you the file name in nb_name then to get the full path you may use the following in a separate cell: import os nb_full_path = os.path.join(os.getcwd(), nb_name)

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

Jupyter notebook never finishes processing using multiprocessing (Python 3)

It seems that the problem in Jupyter notebook as in different ide is the design feature. Therefore, we have to write the function (prime_factor) into a different file and import the module. Furthermore, we have to take care of the adjustments. For example, in my case, I have coded the function into a file known … 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