<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">i applied the changes in the config file<div><br></div><div>something is changing in the log :<div><br></div><div># url in the browser :</div><div><br></div><div><a href="http://geohab.org/ipython/">http://geohab.org/ipython/</a></div><div><br></div><div># log in the shell :</div><div><br></div><div>WARNING:root:404 GET / (127.0.0.1) 0.49ms</div><div>--</div><div><br></div><div># url in the browser :</div><div><a href="http://geohab.org/ipython/ipython">http://geohab.org/ipython/ipython</a></div><div><br></div><div># log in the shell :</div><div>WARNING:root:404 GET /ipython (127.0.0.1) 0.36ms</div><div>--</div><div><br></div><div># url in the browser :</div><div><a href="http://geohab.org/ipython/ipython/">http://geohab.org/ipython/ipython/</a></div><div><br></div><div># log in the shell :</div><div><div>WARNING:root:404 GET /static/jquery/css/themes/base/jquery-ui.min.css?v=d1a93 (127.0.0.1) 0.37ms</div><div>WARNING:root:404 GET /static/css/fbm.css?v=34be8 (127.0.0.1) 0.42ms</div><div>WARNING:root:404 GET /static/css/boilerplate.css?v=befd7 (127.0.0.1) 0.29ms</div><div>WARNING:root:404 GET /static/css/page.css?v=4c306 (127.0.0.1) 0.51ms</div><div>WARNING:root:404 GET /static/css/projectdashboard.css?v=87030 (127.0.0.1) 0.29ms</div><div>WARNING:root:404 GET /static/jquery/js/jquery-1.7.1.min.js?v=ddb84 (127.0.0.1) 0.29ms</div><div>WARNING:root:404 GET /static/jquery/js/jquery-ui.min.js?v=9fc86 (127.0.0.1) 0.38ms</div><div>WARNING:root:404 GET /static/js/loginwidget.js?v=cd12c (127.0.0.1) 0.30ms</div><div>WARNING:root:404 GET /static/js/notebooklist.js?v=ffa0b (127.0.0.1) 0.30ms</div><div>WARNING:root:404 GET /static/js/clusterlist.js?v=da6d3 (127.0.0.1) 0.33ms</div><div>WARNING:root:404 GET /static/js/namespace.js?v=9e4e0 (127.0.0.1) 0.29ms</div><div>WARNING:root:404 GET /static/js/page.js?v=d306b (127.0.0.1) 0.30ms</div><div>WARNING:root:404 GET /static/ipynblogo.png?v=5892b (127.0.0.1) 0.37ms</div><div>WARNING:root:404 GET /static/js/projectdashboardmain.js?v=64f33 (127.0.0.1) 0.29ms</div></div><div><br></div><div><br></div><div><br></div><div>click on the logo (firefox is able to find it, safari instead is not …) it point to the url :</div><div> </div><div><a href="http://geohab.org/ipython/">http://geohab.org/ipython/</a></div><div><br></div><div><br></div><div>thanks!</div><div><br></div><div>Massimo.</div><div><br>
<br><div><div>Il giorno Jun 20, 2012, alle ore 11:33 PM, MinRK ha scritto:</div><br class="Apple-interchange-newline"><blockquote type="cite">The static url is also getting confused.<div><br></div><div>Try:</div><div><br><div>ipython notebook --profile geohab --NotebookApp.base_project_url=/ipython/ --NotebookApp.base_kernel_url=/ipython/ --NotebookApp.webapp_settings='{"static_url_prefix": "/ipython/static/"}'</div>

<div><br></div><div>Which in your ipython_notebook_config.py would be:</div><div><br></div><div>c = get_config()</div><div><br></div><div>prefix = '/ipython/'</div><div>c.NotebookApp.base_project_url = prefix</div>

<div>c.NotebookApp.base_kernel_url = prefix</div><div>c.NotebookApp.webapp_settings = {'static_url_prefix' : prefix + 'static/'}</div><div><br></div><div>At which point you can just do:</div><div><br></div>

<div>ipython notebook --profile geohab</div><div><br></div><div>It would certainly appear that a meta-trait that does these three things together would be desirable.</div><div><br></div><div>-MinRK</div><div><br><div class="gmail_quote">

On Wed, Jun 20, 2012 at 8:05 PM, Massimo Di Stefano <span dir="ltr"><<a href="mailto:massimodisasha@gmail.com" target="_blank">massimodisasha@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

ipython notebook --profile geohab --NotebookApp.base_project_url=<a href="http://geohab.org/ipython" target="_blank">http://geohab.org/ipython</a> --NotebookApp.base_kernel_url=<a href="http://geohab.org/ipython" target="_blank">http://geohab.org/ipython</a><br>


<br>
[NotebookApp] Using existing profile dir: u'/home/epy/.ipython/profile_geohab'<br>
[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.<br>
[NotebookApp] The IPython Notebook is running at: <a href="http://[all">http://[all</a> ip addresses on your system]:30333<a href="http://geohab.org/ipython" target="_blank">http://geohab.org/ipython</a><br>
<br>
<br>
the log :<br>
[NotebookApp] The IPython Notebook is running at: <a href="http://[all">http://[all</a> ip addresses on your system]:30333<a href="http://geohab.org/ipython" target="_blank">http://geohab.org/ipython</a><br>
<br>
seems bad so  i tryed :<br>
<br>
<br>
(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'<br>


[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.<br>
[NotebookApp] The IPython Notebook is running at: <a href="http://[all">http://[all</a> ip addresses on your system]:30333/ipython<br>
<br>
<br>
in this case if i point the browser to :<br>
<br>
<a href="http://geohab.org/ipython" target="_blank">http://geohab.org/ipython</a><br>
<br>
i have in the browser :<br>
<br>
404: Not Found<br>
<br>
in the shell logs :<br>
<br>
WARNING:root:404 GET / (127.0.0.1) 0.48ms<br>
<br>
<br>
if i point the browser to :<br>
<br>
<a href="http://geohab.org/ipython/ipython/" target="_blank">http://geohab.org/ipython/ipython/</a><br>
<br>
i got again the html page without js/css<br>
<br>
but this time the log in the shell is :<br>
<br>
WARNING:root:404 GET /ipython (127.0.0.1) 0.41ms<br>
<br>
<br>
any clue ?<br>
<br>
thanks!!!<br>
<br>
Massimo.<br>
<br>
<br>
<br>
Il giorno Jun 20, 2012, alle ore 10:17 PM, Brian Granger ha scritto:<br>
<div class="HOEnZb"><div class="h5"><br>
> I think you need to set the following config variables:<br>
><br>
> --NotebookApp.base_kernel_url=<Unicode><br>
>    Default: '/'<br>
>    The base URL for the kernel server<br>
> --NotebookApp.base_project_url=<Unicode><br>
>    Default: '/'<br>
>    The base URL for the notebook server<br>
><br>
> In either the command line or terminal:<br>
><br>
> ipython notebook<br>
> --NotebookApp.base_project_url=<a href="http://geohab.org/ipython/" target="_blank">http://geohab.org/ipython/</a><br>
> --NotebookApp.base_kernel_url=<a href="http://geohab.org/ipython/" target="_blank">http://geohab.org/ipython/</a><br>
><br>
> Cheers,<br>
><br>
> Brian<br>
><br>
> On Wed, Jun 20, 2012 at 7:03 PM, Massimo Di Stefano<br>
> <<a href="mailto:massimodisasha@gmail.com">massimodisasha@gmail.com</a>> wrote:<br>
>> Hi All,<br>
>><br>
>> is anyone familiar with webfaction [1] ?<br>
>><br>
>> it is a web-hosting service .. i'm tring to run the ipython notebook from it but something is going wrong.<br>
>><br>
>> i sent already a mail to the suppport, but i was wondering if someone here knows how to fix it.<br>
>><br>
>><br>
>><br>
>> the link to the notebook is :<br>
>><br>
>> <a href="http://geohab.org/ipython" target="_blank">http://geohab.org/ipython</a><br>
>><br>
>> i can see the page is loaded but is not able to load the application ... something is going wrong.<br>
>> all the js and css files are not loaded.<br>
>><br>
>><br>
>> trying to understand what's going on …<br>
>><br>
>> using firefox : if i click on the text on the top "Ipython Notebook"<br>
>><br>
>> it should point to the same page, instead is going back to the web-root : <a href="http://geohab.org/" target="_blank">http://geohab.org</a><br>
>><br>
>> have you any clue on what i should do in order to have it running properly ?<br>
>><br>
>> many thanks!<br>
>><br>
>> Massimo.<br>
>><br>
>><br>
>> [1]  <a href="http://www.webfaction.com/" target="_blank">http://www.webfaction.com/</a><br>
>> _______________________________________________<br>
>> IPython-dev mailing list<br>
>> <a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
>> <a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
><br>
><br>
><br>
> --<br>
> Brian E. Granger<br>
> Cal Poly State University, San Luis Obispo<br>
> <a href="mailto:bgranger@calpoly.edu">bgranger@calpoly.edu</a> and <a href="mailto:ellisonbg@gmail.com">ellisonbg@gmail.com</a><br>
> _______________________________________________<br>
> IPython-dev mailing list<br>
> <a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
> <a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br>
_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</div></div></blockquote></div><br></div></div>
_______________________________________________<br>IPython-dev mailing list<br><a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>http://mail.scipy.org/mailman/listinfo/ipython-dev<br></blockquote></div><br></div></div></body></html>