[IPython-dev] ipython on webfaction hosting

Massimo Di Stefano massimodisasha at gmail.com
Thu Jun 21 00:24:05 EDT 2012


tried  it gave the same logs.
  
i left the kernel running

is there anything i can do 
maybe moving some of the ipython files in the root directory and see if he find it ?


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 at 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 at 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 at 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 at 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 at scipy.org
>> >> http://mail.scipy.org/mailman/listinfo/ipython-dev
>> >
>> >
>> >
>> > --
>> > Brian E. Granger
>> > Cal Poly State University, San Luis Obispo
>> > bgranger at calpoly.edu and ellisonbg at gmail.com
>> > _______________________________________________
>> > IPython-dev mailing list
>> > IPython-dev at scipy.org
>> > http://mail.scipy.org/mailman/listinfo/ipython-dev
>> 
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>> 
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
> 
> 
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
> 
> 
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20120621/d11ea45e/attachment.html>


More information about the IPython-dev mailing list