Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

`ws-hostname` alias not recognized by notebook #885

Closed
fperez opened this Issue · 7 comments

3 participants

@fperez
Owner

When passing --ws-hostname, I'm getting this tb:

amirbar[junk]> ipython notebook --ip=* --ws-hostname=10.0.0.17
[IPythonNotebookApp] Using existing profile dir: u'/home/fperez/.ipython/profile_default'
[IPythonNotebookApp] WARNING: the notebook server is listening on all IP addresses but not using any encryption or authentication. This is highly insecure and not recommended.
[IPythonNotebookApp] The IPython Notebook is running at: http://[all ip addresses on your system]:8888
[IPythonNotebookApp] Kernel started: c4156598-9e6c-4fd9-9611-f3212785aaf4
[IPythonNotebookApp] Connecting to: tcp://127.0.0.1:47250
[IPythonNotebookApp] Connecting to: tcp://127.0.0.1:46985
[IPythonNotebookApp] Connecting to: tcp://127.0.0.1:57152
WARNING: Unrecognized alias: 'ws-hostname', it will probably have no effect.Traceback (most recent call last):
  File "", line 1, in 
  File "/home/fperez/usr/lib/python2.7/site-packages/IPython/zmq/ipkernel.py", line 777, in main
    app.initialize()
  File "/home/fperez/usr/lib/python2.7/site-packages/IPython/zmq/ipkernel.py", line 710, in initialize
    super(IPKernelApp, self).initialize(argv)
  File "/home/fperez/usr/lib/python2.7/site-packages/IPython/zmq/kernelapp.py", line 279, in initialize
    super(KernelApp, self).initialize(argv)
  File "/home/fperez/usr/lib/python2.7/site-packages/IPython/core/application.py", line 306, in initialize
    self.parse_command_line(argv)
  File "/home/fperez/usr/lib/python2.7/site-packages/IPython/config/application.py", line 406, in parse_command_line
    config = loader.load_config()
  File "/home/fperez/usr/lib/python2.7/site-packages/IPython/config/loader.py", line 575, in load_config
    self._convert_to_config()
  File "/home/fperez/usr/lib/python2.7/site-packages/IPython/config/loader.py", line 664, in _convert_to_config
    sub_parser.load_config(self.extra_args)
  File "/home/fperez/usr/lib/python2.7/site-packages/IPython/config/loader.py", line 496, in load_config
    self._exec_config_str(lhs, rhs)
  File "/home/fperez/usr/lib/python2.7/site-packages/IPython/config/loader.py", line 347, in _exec_config_str
    exec exec_str in locals(), globals()
  File "", line 1
SyntaxError: can't assign to operator

The kernel crashes as well, so right now listening on a public IP with fully working websockets seems to be busted, if I understand the mechanics correctly. Unless I'm doing something wrong, I'm flagging this one as critical for 0.12...

@fperez
Owner

ps - esp. because it actually crashes the kernel wholesale...

@minrk minrk closed this in 71ae352
@minrk
Owner

sorry, another typo of mine in the recent PR. Fix pushed.

@fperez
Owner

Perfect! I was trying to access a remote notebook...

BTW, we should probably add a little snippet to http://ipython.org/ipython-doc/dev/interactive/htmlnotebook.html#basic-usage about how to start remote notebooks. The info is there in the --help string, but for a new user who doesn't understand the underlying websockets implementation, it's likely to be too opaque. I just updated that with the new --existing use patterns, but I need to finish my taxes right now so I need to shift gears :)

@ellisonbg
Owner
@minrk
Owner

@ellisonbg I confirmed the issue, and it has since been fixed.

@ellisonbg
Owner
@ellisonbg
Owner

Ahh, nevermind, I see it was a typo...thanks.

@ellisonbg ellisonbg referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@mattvonrocketstein mattvonrocketstein referenced this issue from a commit in mattvonrocketstein/ipython
@minrk minrk fix typo in stripping kernel args in nb and qt
closes #885
e45e474
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.