Can't create ipyparallel clusters on Jupyter Notebook
Asked Answered
B

2

10

I have the following:

  • ipyparallel (5.0.0)
  • ipython (4.0.3)

I have enabled ipcluster by typing in the command line:

ipcluster nbextension enable

I'm trying to create a new cluster on the IPython Clusters tab on the Jupyter notebook, but this is what I see:

screeenshot

I was able to do this before. Thanks!

Buchner answered 12/2, 2016 at 18:39 Comment(0)
B
4

From here:

Instead of editing jupyter_notebook_config.py, edit jupyter_notebook_config.json and look for:

  "NotebookApp": {
    "server_extensions": [
      <some lines>
    ]

change this to:

  "NotebookApp": {
    "server_extensions": [
      <some lines>,
      "ipyparallel.nbextension"
    ]
Buchner answered 3/3, 2016 at 13:42 Comment(1)
Where can I find jupyter_notebook_config.json? I can only find jupyter_notebook_config.py under home/.jupyter/.Iz
K
1

I've just stumbled upon the same problem, and the fix mentioned in the accepted answer worked, but let me add some context for the future visitors of this question, just in case.

I have Anaconda 5.0 for Linux, under that I first did:

jupyter notebook --generate-config
pip install ipyparallel
jupyter nbextension install --py ipyparallel --user
jupyter nbextension enable --py ipyparallel --user
jupyter serverextension enable --py ipyparallel --user

Which lead to the situation on the screenshot. Under ~/.jupyter I have both jupyter_notebook_config.json as well as jupyter_notebook_config.py.

The json file had this inside:

{
  "NotebookApp": {
    "nbserver_extensions": {
      "ipyparallel.nbextension": true
    }
  }
}

I changed the file by adding a "server_extensions" block as follows:

{
  "NotebookApp": {
    "nbserver_extensions": {
      "ipyparallel.nbextension": true
    },
    "server_extensions": [
      "ipyparallel.nbextension"
    ]
  }
}

After restart, Jupyter reported in the logs:

[W 19:44:14.107 NotebookApp] server_extensions is deprecated, use nbserver_extensions 

However, the Clusters tab started working as necessary. Apparently, some recent changes in the configuration logic did not propagate to all of the codebase.

Kissiah answered 13/10, 2017 at 19:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.