[IPython-dev] ipython on webfaction hosting

Massimo Di Stefano massimodisasha@gmail....
Thu Jun 21 05:17:59 CDT 2012


i forgot …


Using an html file like :

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>IPython</title>
<META name="IPython" content="IPython"><META name="keywords" content="IPython">
</head>
<frameset rows="100%,*" border="0">
<frame src="
http://xx.xx.xx.xx:yyyyy/ipython/" frameborder="0" />
<frame frameborder="0" noresize />
</frameset>
</html>


i can avoid to type the IP (hints from webfaction support)
happy notebook!!!

;)

Il giorno Jun 21, 2012, alle ore 2:36 AM, Massimo Di Stefano ha scritto:

> Brian, 
> 
> you're right!
> 
> From the support on webfaction (i pointed him to this topic) :
> 
> 
> From this mailing list question, it looks like you're trying to use WebSockets. The front-end Nginx proxy won't support that, but we can add a free "second shared IP address" to your account and on this IP we can open your custom application port. Then, your application can communicate directly over the internet without a proxy (Nginx).
> 
> Would you like us to add this IP at this time?
> 
>> 
> 
> not it's runnning fine!
> i have to type the IP instead of the host name .. but it's fine :)
> 
> 
> thanks!!!
> 
> 
> 
> Il giorno Jun 21, 2012, alle ore 1:15 AM, Brian Granger ha scritto:
> 
>> What proxy are you using?  Many proxies don't support WebSockets.
>> 
>> Brian
>> 
>> On Wed, Jun 20, 2012 at 9:36 PM, Massimo Di Stefano
>> <massimodisasha@gmail.com> wrote:
>>> 
>>> i'll continue to try,  but i'm a bit hopeless. ;)
>>> 
>>> i guess is all in how the server-proxy is configured,
>>> i'll wait an answer from the support and let you know
>>> 
>>> thanks for the help!
>>> 
>>> Massimo.
>>> 
>>> will be nice to see ipython running on a basic web-hosting solution (100$
>>> per year)
>>> 
>>> Il giorno Jun 21, 2012, alle ore 12:03 AM, MinRK ha scritto:
>>> 
>>> There's something a bit funny in your proxy.
>>> 
>>> Try adding one more '/ipython' to just the static url:
>>> 
>>> c.NotebookApp.webapp_settings = {'static_url_prefix' : prefix +
>>> 'ipython/static/'}
>>> 
>>> On Wed, Jun 20, 2012 at 8:49 PM, Massimo Di Stefano
>>> <massimodisasha@gmail.com> wrote:
>>>> 
>>>> i applied the changes in the config file
>>>> 
>>>> something is changing in the log :
>>>> 
>>>> # url in the browser :
>>>> 
>>>> http://geohab.org/ipython/
>>>> 
>>>> # log in the shell :
>>>> 
>>>> WARNING:root:404 GET / (127.0.0.1) 0.49ms
>>>> --
>>>> 
>>>> # url in the browser :
>>>> http://geohab.org/ipython/ipython
>>>> 
>>>> # log in the shell :
>>>> WARNING:root:404 GET /ipython (127.0.0.1) 0.36ms
>>>> --
>>>> 
>>>> # url in the browser :
>>>> http://geohab.org/ipython/ipython/
>>>> 
>>>> # log in the shell :
>>>> WARNING:root:404 GET
>>>> /static/jquery/css/themes/base/jquery-ui.min.css?v=d1a93 (127.0.0.1) 0.37ms
>>>> WARNING:root:404 GET /static/css/fbm.css?v=34be8 (127.0.0.1) 0.42ms
>>>> WARNING:root:404 GET /static/css/boilerplate.css?v=befd7 (127.0.0.1)
>>>> 0.29ms
>>>> WARNING:root:404 GET /static/css/page.css?v=4c306 (127.0.0.1) 0.51ms
>>>> WARNING:root:404 GET /static/css/projectdashboard.css?v=87030 (127.0.0.1)
>>>> 0.29ms
>>>> WARNING:root:404 GET /static/jquery/js/jquery-1.7.1.min.js?v=ddb84
>>>> (127.0.0.1) 0.29ms
>>>> WARNING:root:404 GET /static/jquery/js/jquery-ui.min.js?v=9fc86
>>>> (127.0.0.1) 0.38ms
>>>> WARNING:root:404 GET /static/js/loginwidget.js?v=cd12c (127.0.0.1) 0.30ms
>>>> WARNING:root:404 GET /static/js/notebooklist.js?v=ffa0b (127.0.0.1) 0.30ms
>>>> WARNING:root:404 GET /static/js/clusterlist.js?v=da6d3 (127.0.0.1) 0.33ms
>>>> WARNING:root:404 GET /static/js/namespace.js?v=9e4e0 (127.0.0.1) 0.29ms
>>>> WARNING:root:404 GET /static/js/page.js?v=d306b (127.0.0.1) 0.30ms
>>>> WARNING:root:404 GET /static/ipynblogo.png?v=5892b (127.0.0.1) 0.37ms
>>>> WARNING:root:404 GET /static/js/projectdashboardmain.js?v=64f33
>>>> (127.0.0.1) 0.29ms
>>>> 
>>>> 
>>>> 
>>>> click on the logo (firefox is able to find it, safari instead is not …) it
>>>> point to the url :
>>>> 
>>>> http://geohab.org/ipython/
>>>> 
>>>> 
>>>> thanks!
>>>> 
>>>> Massimo.
>>>> 
>>>> 
>>>> Il giorno Jun 20, 2012, alle ore 11:33 PM, MinRK ha scritto:
>>>> 
>>>> The static url is also getting confused.
>>>> 
>>>> Try:
>>>> 
>>>> ipython notebook --profile geohab --NotebookApp.base_project_url=/ipython/
>>>> --NotebookApp.base_kernel_url=/ipython/
>>>> --NotebookApp.webapp_settings='{"static_url_prefix": "/ipython/static/"}'
>>>> 
>>>> Which in your ipython_notebook_config.py would be:
>>>> 
>>>> c = get_config()
>>>> 
>>>> prefix = '/ipython/'
>>>> c.NotebookApp.base_project_url = prefix
>>>> c.NotebookApp.base_kernel_url = prefix
>>>> c.NotebookApp.webapp_settings = {'static_url_prefix' : prefix + 'static/'}
>>>> 
>>>> At which point you can just do:
>>>> 
>>>> ipython notebook --profile geohab
>>>> 
>>>> It would certainly appear that a meta-trait that does these three things
>>>> together would be desirable.
>>>> 
>>>> -MinRK
>>>> 
>>>> On Wed, Jun 20, 2012 at 8:05 PM, Massimo Di Stefano
>>>> <massimodisasha@gmail.com> wrote:
>>>>> 
>>>>> ipython notebook --profile geohab
>>>>> --NotebookApp.base_project_url=http://geohab.org/ipython
>>>>> --NotebookApp.base_kernel_url=http://geohab.org/ipython
>>>>> 
>>>>> [NotebookApp] Using existing profile dir:
>>>>> u'/home/epy/.ipython/profile_geohab'
>>>>> [NotebookApp] WARNING: the notebook server is listening on all IP
>>>>> addresses but not using any encryption or authentication. This is highly
>>>>> insecure and not recommended.
>>>>> [NotebookApp] The IPython Notebook is running at: http://[all ip
>>>>> addresses on your system]:30333http://geohab.org/ipython
>>>>> 
>>>>> 
>>>>> the log :
>>>>> [NotebookApp] The IPython Notebook is running at: http://[all ip
>>>>> addresses on your system]:30333http://geohab.org/ipython
>>>>> 
>>>>> seems bad so  i tryed :
>>>>> 
>>>>> 
>>>>> (env1)[epy@web317 ~]$ ipython notebook --profile geohab
>>>>> --NotebookApp.base_project_url=/ipython
>>>>> --NotebookApp.base_kernel_url=/ipython[NotebookApp] Using existing profile
>>>>> dir: u'/home/epy/.ipython/profile_geohab'
>>>>> [NotebookApp] WARNING: the notebook server is listening on all IP
>>>>> addresses but not using any encryption or authentication. This is highly
>>>>> insecure and not recommended.
>>>>> [NotebookApp] The IPython Notebook is running at: http://[all ip
>>>>> addresses on your system]:30333/ipython
>>>>> 
>>>>> 
>>>>> in this case if i point the browser to :
>>>>> 
>>>>> http://geohab.org/ipython
>>>>> 
>>>>> i have in the browser :
>>>>> 
>>>>> 404: Not Found
>>>>> 
>>>>> in the shell logs :
>>>>> 
>>>>> WARNING:root:404 GET / (127.0.0.1) 0.48ms
>>>>> 
>>>>> 
>>>>> if i point the browser to :
>>>>> 
>>>>> http://geohab.org/ipython/ipython/
>>>>> 
>>>>> i got again the html page without js/css
>>>>> 
>>>>> but this time the log in the shell is :
>>>>> 
>>>>> WARNING:root:404 GET /ipython (127.0.0.1) 0.41ms
>>>>> 
>>>>> 
>>>>> any clue ?
>>>>> 
>>>>> thanks!!!
>>>>> 
>>>>> Massimo.
>>>>> 
>>>>> 
>>>>> 
>>>>> Il giorno Jun 20, 2012, alle ore 10:17 PM, Brian Granger ha scritto:
>>>>> 
>>>>>> I think you need to set the following config variables:
>>>>>> 
>>>>>> --NotebookApp.base_kernel_url=<Unicode>
>>>>>>   Default: '/'
>>>>>>   The base URL for the kernel server
>>>>>> --NotebookApp.base_project_url=<Unicode>
>>>>>>   Default: '/'
>>>>>>   The base URL for the notebook server
>>>>>> 
>>>>>> In either the command line or terminal:
>>>>>> 
>>>>>> ipython notebook
>>>>>> --NotebookApp.base_project_url=http://geohab.org/ipython/
>>>>>> --NotebookApp.base_kernel_url=http://geohab.org/ipython/
>>>>>> 
>>>>>> Cheers,
>>>>>> 
>>>>>> Brian
>>>>>> 
>>>>>> On Wed, Jun 20, 2012 at 7:03 PM, Massimo Di Stefano
>>>>>> <massimodisasha@gmail.com> wrote:
>>>>>>> Hi All,
>>>>>>> 
>>>>>>> is anyone familiar with webfaction [1] ?
>>>>>>> 
>>>>>>> it is a web-hosting service .. i'm tring to run the ipython notebook
>>>>>>> from it but something is going wrong.
>>>>>>> 
>>>>>>> i sent already a mail to the suppport, but i was wondering if someone
>>>>>>> here knows how to fix it.
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> the link to the notebook is :
>>>>>>> 
>>>>>>> http://geohab.org/ipython
>>>>>>> 
>>>>>>> i can see the page is loaded but is not able to load the application
>>>>>>> ... something is going wrong.
>>>>>>> all the js and css files are not loaded.
>>>>>>> 
>>>>>>> 
>>>>>>> trying to understand what's going on …
>>>>>>> 
>>>>>>> using firefox : if i click on the text on the top "Ipython Notebook"
>>>>>>> 
>>>>>>> it should point to the same page, instead is going back to the
>>>>>>> web-root : http://geohab.org
>>>>>>> 
>>>>>>> have you any clue on what i should do in order to have it running
>>>>>>> properly ?
>>>>>>> 
>>>>>>> many thanks!
>>>>>>> 
>>>>>>> Massimo.
>>>>>>> 
>>>>>>> 
>>>>>>> [1]  http://www.webfaction.com/
>>>>>>> _______________________________________________
>>>>>>> IPython-dev mailing list
>>>>>>> IPython-dev@scipy.org
>>>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> --
>>>>>> Brian E. Granger
>>>>>> Cal Poly State University, San Luis Obispo
>>>>>> bgranger@calpoly.edu and ellisonbg@gmail.com
>>>>>> _______________________________________________
>>>>>> IPython-dev mailing list
>>>>>> IPython-dev@scipy.org
>>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>>>> 
>>>>> _______________________________________________
>>>>> IPython-dev mailing list
>>>>> IPython-dev@scipy.org
>>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>>> 
>>>> 
>>>> _______________________________________________
>>>> IPython-dev mailing list
>>>> IPython-dev@scipy.org
>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> IPython-dev mailing list
>>>> IPython-dev@scipy.org
>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>>> 
>>> 
>>> _______________________________________________
>>> IPython-dev mailing list
>>> IPython-dev@scipy.org
>>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> IPython-dev mailing list
>>> IPython-dev@scipy.org
>>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>> 
>> 
>> 
>> 
>> -- 
>> Brian E. Granger
>> Cal Poly State University, San Luis Obispo
>> bgranger@calpoly.edu and ellisonbg@gmail.com
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev@scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
> 



More information about the IPython-dev mailing list