login community faq

Hi there,

Has anyone run ipython using the notebook web interface as a web service in webfaction allowing users to login and use ipython notebook as a python environment for plotting and performing analysis on a data set that is also resident on webfaction?

I believe notebook relies on (py)zeromq and tornado, which both can be installed, and I have seen references to ipython itself being installed, but nothing re notebook.

One potential issue, based on my understanding of notebook, is that each notebook client needs a separate port on the tornado box (webfaction in this case). Is this a correct or incorrect understanding? If it is correct, would this mean it could not be used in webfaction shared server plans? What options would exist then?

Any insight, experience, clarification, would be appreciated. ;)

Thank you.

Sol

asked Jun 05 '12 at 07:28

isolver's gravatar image

isolver
1


Hi,

According to Notebook's documentation, it can be run as a public server on a custom port. I'm not sure if it would work properly if the Webfaction frontend Nginx server forwards to that custom port, but you can try that. If that doesn't work, you can open a ticket, so we can open a custom port for you to access the public Notebook server on.

answered Jun 05 '12 at 10:48

todork's gravatar image

todork
10964

Thanks for the input and the pointer to the docs I should have read. ;(

I have configured things using a custom port application that ipython is listening on (using the port # webfaction has provided ) and have enabled SSL for the domain and site. Following the ipython instructions referenced above, I created a self signed cert and a password. Now when I go to https://ipython.mydomain.org it seems to make it through to the ipython notebook as the following exception is created by zmq / ssl (I think):

SSLError: [Errno 336265218] _ssl.c:351: error:140B0002:SSL routines:SSL_CTX_use_PrivateKey_file:system lib ERROR:root:Exception in I/O handler for fd 6 Traceback (most recent call last): File "/home/isolver/lib/python2.7/zmq/eventloop/ioloop.py", line 330, in start self._handlersfd File "/home/isolver/lib/python2.7/tornado-2.3-py2.7.egg/tornado/netutil.py", line 324, in accept_handler callback(connection, address) File "/home/isolver/lib/python2.7/tornado-2.3-py2.7.egg/tornado/netutil.py", line 202, in _handle_connection **self.ssl_options) File "/usr/local/lib/python2.7/ssl.py", line 381, in wrap_socket ciphers=ciphers) File "/usr/local/lib/python2.7/ssl.py", line 141, in init ciphers) SSLError: [Errno 336265218] _ssl.c:351: error:140B0002:SSL routines:SSL_CTX_use_PrivateKey_file:system lib

Any suggestions?

Thanks very much in advance.

Sol

(Jun 06 '12 at 04:41) isolver isolver's gravatar image

Hi,

Could you open a ticket about this, and let us know how to reproduce the problem, so we can investigate further?

(Jun 06 '12 at 04:55) todork todork's gravatar image

So after tuns of excellent support from the webfaction team, it turns out that the ipython notebook seems to create 'three' localhost tcpip connections on random ports for each notebook you create; and there does not appear to be any way around this.

If anyhow knows how, please share the joy, otherwise, no ipython notebook on webfaction shared servers, or likely any provider for that matter unless you have the ability to use random port when you like; which does not make too much sense.

Oh well; thanks so much for trying to work it out with me WF Support! It was fun trying. ;)

answered Jun 13 '12 at 04:29

isolver's gravatar image

isolver
1

Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×9
×1
×1
×1

Asked: Jun 05 '12 at 07:28

Seen: 691 times

Last updated: Jun 13 '12 at 04:29

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited