Per-user config should be loading; this is a bug in the ipcluster nbextension command, where it doesn’t write the config to the correct place. The nature of the bug means that it should do the right thing if you cd to the ~/.jupyter directory before running it. But a simpler workaround might be to add the config manually (the 4.x, way):
echo 'c.NotebookApp.server_extensions.append("ipyparallel.nbextension")' >> ~/.jupyter/jupyter_notebook_config.py
which effectively accomplishes the same thing.
You can actually do this in /etc/jupyter/jupyter_notebook_config.py, if you want, and it should affect all users.
-MinRK
--Thanks,Chris
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/058ce065-2f28-4ce7-940e-c088a4ac6d2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/4f7f636e-affb-47c8-8cc9-aa3436dfb26d%40googlegroups.com.
--
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/50a24742-9607-4a67-9969-8ddf96a96af2%40googlegroups.com.
Ah, if you want to start the cluster with Python 2, but the notebook server with Python 3 that’s a little bit tricky, but doable.
ipyparallel with both Python 2 and 3, because it needs to be available to the notebook server for instantiating the IPCluster classes it uses to launch everything, and again available to Python 2 for running the actual processes.Set the config to launch controller and engines with Python 2, regardless of the current interpreter:
# ~/.ipython/profile_default/ipcluster_config.py (or profile_mpi, etc.)
# (you may need an absolute path for 'python2')
c.IPClusterStart.controller_cmd = ['python2', '-m', 'ipyparallel.controller']
c.IPClusterEngines.engine_cmd = ['python2', '-m', 'ipyparallel.engine']
The ipcluster_cmd doesn’t come up for the clusters tab because the server extension doesn’t call ipcluster as a subprocess, it instantiates the IPCluster classes locally, which then start the controller(s) and engines.
-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/6a7dd80d-222b-415c-8979-3b238ccbdc19%40googlegroups.com.
On Tue, Mar 15, 2016 at 11:15 AM, Chris Kees <cek...@gmail.com> wrote:
I don't necessarily want to start the notebook server with Python3, that's just the way it's set up with the DockerSpawner example. I believe it's the jupyterhub-singleuser script that uses Python3. Should I try to switch that to Python2?
You can do that, but I wouldn’t recommend it. It requires a bit of fiddling and changing what we install, so let’s try to get it working with the defaults.
I tried configuring the commands below and a few permutations, but it looks like something's not quite right. I can't seem to figure out where the engine_cmd value is located.$ /usr/local/bin/ipcluster start -n 4 --profile=mpi2016-03-15 10:07:21.111 [IPClusterStart] WARNING | Config option `engine_cmd` not recognized by `IPClusterStart`, do you mean : `engine_launcher`2016-03-15 10:07:21.116 [IPClusterStart] WARNING | Config option `controller_cmd` not recognized by `IPClusterStart`, do you mean one of : `controller_ip ,controller_launcher ,controller_launcher_class`2016-03-15 10:07:21.123 [IPClusterStart] WARNING | Config option `engine_cmd` not recognized by `IPClusterStart`, do you mean : `engine_launcher`
Whoops, sorry about that (hooray for messages when config is ignored!). It should be:
c.LocalControllerLauncher.controller_cmd
c.MPIEngineSetLauncher.engine_cmd
Not IPClusterX.
-MinRK
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/a3a01af7-8bf6-43fa-a54c-2b246c2d4367%40googlegroups.com.
...
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/5c5eacbe-6366-416d-aad6-9c1fc46a72f3%40googlegroups.com.
I'll make a wiki page. Should I put it on the IPython wiki? Maybe 'Cookbook: Parallel IPython config for jupyterhub'?