Running Jupyter kernel gateway and notebook simultaneously

213 views
Skip to first unread message

Olav Laudy

unread,
Jan 30, 2018, 12:47:09 PM1/30/18
to Project Jupyter
Hi,

It would be ideal to run the Jupyter kernel gateway and notebook simultaneously on different ports.


In my docker-compose, I define:

  test_gateway:
    build: test_gateway
    restart: unless-stopped
    ports:
     - "9090:9090"
     - "9191:9191"
    command: >
       jupyter kernelgateway 
       --KernelGatewayApp.api=notebook-http
       --KernelGatewayApp.ip=0.0.0.0
       --KernelGatewayApp.seed_uri='/home/jovyan/work/scotch_api_python.ipynb'
       --KernelGatewayApp.port=9191 
       start-notebook.sh
       --NotebookApp.password='sha1:<some string>'
       --NotebookApp.port=9090

but I can't seem to get it to work.


Any ideas?


Thanks!


Olav

Luciano Resende

unread,
Jan 30, 2018, 4:02:10 PM1/30/18
to jup...@googlegroups.com
Could you clarify what does not seem to be working?

Have you properly configured the NB2KG extension to tell Jupyter Notebooks to connect to JKG?


--
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+unsubscribe@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/8ca66148-4e86-4ee4-b8b6-ccdb92faed41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Roland Weber

unread,
Jan 31, 2018, 2:15:40 AM1/31/18
to Project Jupyter
Hello Olav,

as Luciano already pointed out, we need more information about your problem.
Have you looked at the logs or console output of both notebook and kernel gateway?
Is one of them coming up, or are both running into problems?

Luciano, Olav is running the kernel gateway in notebook-http mode. I don't think NB2KG is used in this scenario.

cheers,
  Roland

Andy Davidson

unread,
Feb 1, 2018, 4:51:27 PM2/1/18
to jup...@googlegroups.com
Hi Roland

I am running Jupyter on my local machine. I notice the following on start up

[I 13:30:55.704 NotebookApp] Accepting one-time-token-authenticated connection from ::1

[W 13:31:06.901 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20180201133054 (::1) 13.58ms referer=http://localhost:8888/notebooks/logisticRegression.ipynb

[I 13:31:07.632 NotebookApp] Kernel started: 42777506-bc3d-4b95-b2f6-7d821d1f6ffc

[I 13:31:08.556 NotebookApp] Adapting to protocol v5.1 for kernel 42777506-bc3d-4b95-b2f6-7d821d1f6ffc


Found the following https://github.com/jupyter/help/issues/186


The following got rid of the console error, how ever I still have the same original problem


$ jupyter nbextension enable --py widgetsnbextension

Enabling notebook extension jupyter-js-widgets/extension...

      - Validating: OK


$ jq "." ~/.jupyter/nbconfig/notebook.json

{

  "aedwip_comment": {

    "howToWrapText": "https://stackoverflow.com/questions/36419342/how-to-wrap-code-text-in-jupyter-notebooks"

  },

  "MarkdownCell": {

    "cm_config": {

      "lineWrapping": true

    }

  },

  "CodeCell": {

    "cm_config": {

      "lineWrapping": true

    }

  }

}


I noticed that it seems like about half of the python source lines are being displayed in my code cells. Not sure why clicking on the cell would cause everything to be displayed?

Andy

--
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.
Reply all
Reply to author
Forward
0 new messages