[IPython-dev] ipython on webfaction hosting

MinRK benjaminrk at gmail.com
Wed Jun 20 23:33:03 EDT 2012


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20120620/01bc079a/attachment.html>


More information about the IPython-dev mailing list