How to create multiple profiles?

3,171 views
Skip to first unread message

pybokeh

unread,
Aug 17, 2015, 9:08:36 AM8/17/15
to Project Jupyter
Hello,
In IPython notebook versions, I could execute this command in the terminal:

ipython profile create my_profile    to create multiple profiles

Reading the jupyter docs at:

It implies that I would need to do:
jupyter {application} --generate-config

or jupyter my_profile --generate-config

But I get an error message:
jupyter: 'my_profile' is not a Jupyter command

jupyter notebook --generate-config works, but what if I want to create other profiles with names other than "notebook"?

As a workaround, I renamed jupyter_notebook_config.py to jupyter_my_profile_config.py, but I shouldn't have to manually copy and then rename config files.  Did I miss further details in the jupyter docs or was the ability to make multiple profiles not implemented yet in jupyter?

By the way, I am using Windows environment with jupyter installed via conda.  Thanks!

- Daniel

pybokeh

unread,
Aug 17, 2015, 10:07:57 AM8/17/15
to Project Jupyter
On a related note,
looks like jupyter notebook --profile=my_profile doesn't work or is not longer valid with jupyter

MinRK

unread,
Aug 17, 2015, 12:05:36 PM8/17/15
to jup...@googlegroups.com
Jupyter did not inherit the concept of profiles from IPython. So there is one jupyter config directory (~/.jupyter by default). You can select a new config directory with the JUPYTER_CONFIG_DIR env variable, which is analogous to switching profiles in IPython.

So 

    ipython notebook --profile foo

would look like

    JUPTYER_CONFIG_DIR=~/jupyter_foo jupyter notebook

in Jupyter, etc.

-MinRK

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/695ff665-0e52-45db-ad4c-0c0eb3357767%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

pybokeh

unread,
Aug 17, 2015, 1:00:18 PM8/17/15
to Project Jupyter
OK thanks that worked.

But what does the {application} syntax in the documentation do?  To me, it implies you can set an application or profile name and then refer to that name when executing jupyter commands.

MinRK

unread,
Aug 17, 2015, 5:07:50 PM8/17/15
to jup...@googlegroups.com

On Mon, Aug 17, 2015 at 10:00 AM, pybokeh <pyb...@gmail.com> wrote:

OK thanks that worked.

But what does the {application} syntax in the documentation do?  To me, it implies you can set an application or profile name and then refer to that name when executing jupyter commands.

{application} is the jupyter subcommand, e.g. jupyter notebook or jupyter qtconsole. These files define and generate their own config files, e.g. jupyter notebook --generate-config. So the full command for starting a new configuration for the notebook that’s not your default would be:

JUPYTER_CONFIG_DIR=~/jupyter_custom jupyter notebook --generate-config

Max Linke

unread,
Aug 18, 2015, 5:02:25 AM8/18/15
to Project Jupyter
Hi

is it also possible to choose between my different ipython-config? I'm asking because I have a customized
profile for my work which loads a bunch of different modules at the start. To test if bugs are a result of my config or the actual ipython/jupyter code I also have a profile which only has the default profiles.

How can I change between these ipython-kernel profiles in the jupyter notebook. Previously
I would just use a different ipython profile. But since the notebook and ipython are separated now
I can't do that anymore.


best Max

pybokeh

unread,
Aug 18, 2015, 8:10:29 AM8/18/15
to Project Jupyter
Ahhh I see. I mistook {application} to mean profile, not sub-command.  Thanks for the clarification!
Reply all
Reply to author
Forward
0 new messages