How to run Jupyter notebook in docker


#1

Hi,

Can anyone let me know how to run the jupyter notebook in the docker-version nrp? I followed the post here but I did not succeed in running it.

I tried to execute the command cle-virtual-coach ipython notebook in the backend container but I got the errors below:

bbpnrsoa@0be9cc1e2214:~/nrp/src$ cle-virtual-coach ipython notebook
[TerminalIPythonApp] WARNING | Subcommand `ipython notebook` is deprecated and will be removed in future versions.
[TerminalIPythonApp] WARNING | You likely want to use `jupyter notebook` in the future
Traceback (most recent call last):
  File "/usr/bin/ipython", line 5, in <module>
    start_ipython()
  File "/home/bbpnrsoa/.local/lib/python2.7/site-packages/IPython/__init__.py", line 119, in start_ipython
    return launch_new_instance(argv=argv, **kwargs)
  File "/home/bbpnrsoa/.local/lib/python2.7/site-packages/traitlets/config/application.py", line 657, in launch_instance
    app.initialize(argv)
  File "</home/bbpnrsoa/.local/lib/python2.7/site-packages/decorator.pyc:decorator-gen-109>", line 2, in initialize
  File "/home/bbpnrsoa/.local/lib/python2.7/site-packages/traitlets/config/application.py", line 87, in catch_config_error
    return method(app, *args, **kwargs)
  File "/home/bbpnrsoa/.local/lib/python2.7/site-packages/IPython/terminal/ipapp.py", line 300, in initialize
    super(TerminalIPythonApp, self).initialize(argv)
  File "</home/bbpnrsoa/.local/lib/python2.7/site-packages/decorator.pyc:decorator-gen-7>", line 2, in initialize
  File "/home/bbpnrsoa/.local/lib/python2.7/site-packages/traitlets/config/application.py", line 87, in catch_config_error
    return method(app, *args, **kwargs)
  File "/home/bbpnrsoa/.local/lib/python2.7/site-packages/IPython/core/application.py", line 446, in initialize
    self.parse_command_line(argv)
  File "/home/bbpnrsoa/.local/lib/python2.7/site-packages/IPython/terminal/ipapp.py", line 295, in parse_command_line
    return super(TerminalIPythonApp, self).parse_command_line(argv)
  File "</home/bbpnrsoa/.local/lib/python2.7/site-packages/decorator.pyc:decorator-gen-4>", line 2, in parse_command_line
  File "/home/bbpnrsoa/.local/lib/python2.7/site-packages/traitlets/config/application.py", line 87, in catch_config_error
    return method(app, *args, **kwargs)
  File "/home/bbpnrsoa/.local/lib/python2.7/site-packages/traitlets/config/application.py", line 514, in parse_command_line
    return self.initialize_subcommand(subc, subargv)
  File "/home/bbpnrsoa/.local/lib/python2.7/site-packages/IPython/core/application.py", line 236, in initialize_subcommand
    return super(BaseIPythonApplication, self).initialize_subcommand(subc, argv)
  File "</home/bbpnrsoa/.local/lib/python2.7/site-packages/decorator.pyc:decorator-gen-3>", line 2, in initialize_subcommand
  File "/home/bbpnrsoa/.local/lib/python2.7/site-packages/traitlets/config/application.py", line 87, in catch_config_error
    return method(app, *args, **kwargs)
  File "/home/bbpnrsoa/.local/lib/python2.7/site-packages/traitlets/config/application.py", line 452, in initialize_subcommand
    self.subapp.initialize(argv)
  File "</home/bbpnrsoa/.local/lib/python2.7/site-packages/decorator.pyc:decorator-gen-113>", line 2, in initialize
  File "/home/bbpnrsoa/.local/lib/python2.7/site-packages/traitlets/config/application.py", line 87, in catch_config_error
    return method(app, *args, **kwargs)
  File "/home/bbpnrsoa/.opt/platform_venv/lib/python2.7/site-packages/notebook/notebookapp.py", line 1630, in initialize
    self.init_webapp()
  File "/home/bbpnrsoa/.opt/platform_venv/lib/python2.7/site-packages/notebook/notebookapp.py", line 1407, in init_webapp
    self.http_server.listen(port, self.ip)
  File "/home/bbpnrsoa/nrp/src/GazeboRosPackages/src/rosbridge_suite-develop/rosbridge_server/src/tornado/tcpserver.py", line 129, in listen
    sockets = bind_sockets(port, address=address)
  File "/home/bbpnrsoa/nrp/src/GazeboRosPackages/src/rosbridge_suite-develop/rosbridge_server/src/tornado/netutil.py", line 149, in bind_sockets
    sock.bind(sockaddr)
  File "/usr/lib/python2.7/socket.py", line 228, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 99] Cannot assign requested address

Did anyone experience the same problem?

Best regards,

Rui