[IPython-dev] Setting up IPython with IPython-hydra and IPython-proxy

epi massimodisasha@gmail....
Fri Jun 7 12:02:35 CDT 2013


Hi Matthias,

i tried several combination of url, but no one was working with ipython master
i removed the dev version and used the stable version0.13.2 (apt-be on debian)

running :

start("ipython",8888)


i got the url :

http://localhost:8888/ipython/

working properly (but it still use the port)

if i use the "proxy" url :

http://localhost:8000/ipython/

i got the same results that apache_proxy gave me (only plain html loaded) see screenshot [1]

[1] http://www.geofemengineering.it//data/ipython-proxy.png


Matthias, really thanks for your help, please don't blame me to be too insistent .. i'm trying hard to have it running 
(i got lost in the 120 lines, i'm still on it .. no clue how to debug-test that code)

thank you.

Massimo.

p.s.
is my thought a feature like this has all the right to be included in the development, 
most sys admins are against opening ports for each instance having this running for ipython will help a lot of peoples … 
that's absolutely true if we're trying to push the use of ipython in government agency (that's what i'm doing)



Il giorno 07/giu/2013, alle ore 04:21, epi <massimodisasha@gmail.com> ha scritto:

> Hi Matthias,
> 
> i tried it, in the past i had it running using localhost but was not running using a real IP
> 
> now truing again (ipytho git master)  i can't have it running anymore
> 
> 127.0.0.1/ipython   give not found
> 
> localhost/ipython   not found
> 
> 127.0.0.1:8888/ipython     load the page without css/js 
> 
> 
> i tried to read the main.js  no comments doesn't help, but i'm still trying
> 
> thanks for any further help.
> 
> Il giorno 07/giu/2013, alle ore 04:06, Matthias BUSSONNIER <bussonniermatthias@gmail.com> ha scritto:
> 
>> Hi, 
>> 
>> I once developped a prof of concept of  node proxy able to do a arbitrary mapping between urls and notebook 
>> 
>> NPM
>> https://npmjs.org/package/ipython-notebook-proxy
>> 
>> Github
>> https://github.com/Carreau/IPython-notebook-proxy
>> 
>> You can even add/remove servers on the fly if needed. 
>> 
>> I just don't have enough time to manage it but the code is pretty simple (120 LOC, white line included)
>> So you should be able to figure out how to adapt to your needs. 
>> -- 
>> Matthias
>> 
>> 
>> 
>> 
>> Le 7 juin 2013 à 09:53, epi a écrit :
>> 
>>> Hi All,
>>> 
>>> I'm using IPython Notebook with a group of researcher at my university everything was working fine [1] 
>>> but unfortunately they are stopping my services because they don't allow me to use expose to the whole internet the IP:PORT where the IPython instances are running.
>>> 
>>> that's frustrating because i had to "quit" the services and now people is stuck with their work, no-more available :(
>>> 
>>> 
>>> i tried to set up a proxy with apache, but afaik apache doesn't like websoket .
>>> 
>>> i tried enabling the mod_proxy, mod_proxy_html, mod_proxy_http and in the 000-defaults file under /etc/apache2/sites-enabled, 
>>> I put the following lines:
>>> 
>>>     ProxyPass /ipython1 http://localhost:8080
>>> 
>>>     <Location /ipython1>
>>>         Order allow,deny
>>>         Allow from All  
>>>         ProxyPassReverse /
>>>         #ProxyHTMLExtended On
>>>         ProxyHTMLURLMap / /ipython1/ c
>>>         SetOutputFilter proxy-html
>>>     </Location>
>>> 
>>> but the page will not render properly.
>>> 
>>> 
>>> 
>>> Googling i came across IPython-Hydra and IPython-Proxy
>>> and at this link  https://github.com/cni/ipython-hydra/issues/1  
>>> is described exactly what i was looking for 
>>> 
>>> i tried to set up IPython-notebook-proxy but i got the same result of using apache proxy (no js/css loaded)
>>> 
>>> 
>>> i also tried to setup ipython-hydra but it gave me :
>>> 
>>> [Wed Jun 05 06:25:28 2013] [error] [client 127.0.0.1] PHP Fatal error:  require_once(): Failed opening required 'Logging.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/ipython-hydra.php on line 2
>>> 
>>> 
>>> thank you for any help!
>>> 
>>> 
>>> 
>>> 
>>> [1]
>>> ###
>>> the non-solution i was using  :
>>> 
>>> I added on a linux machine N unix-users and add in "crontab -e" :
>>> 
>>> @reboot /bin/sh /usr/local/bin/ipython.sh
>>> 
>>> 
>>> # where "ipython.sh" is a script to export few environment vars and run an ipython notebook with a specific profile (where the --port is specified)
>>> 
>>> 
>>> this ends that at each reboot all the unix users have a running notebook on their specific port.
>>> 
>>> then from the apache root directory "/var/ww/" i stored a set of html file :
>>> 
>>> "/var/www/ipython/user1.html"
>>>>>> "/var/www/ipython/userN.html"
>>> 
>>> with this code in it :
>>> 
>>> 
>>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
>>> "http://www.w3.org/TR/html4/strict.dtd">
>>> <html>
>>> <head>
>>> <title>MySite</title>
>>> <META name="description" content="MySite"><META name="keywords" content="MySite">
>>> </head>
>>> <frameset rows="100%,*" border="0">
>>> <frame src="http://LOCALNETWORK-IP:USER_PORT" frameborder="0" />
>>> <frame frameborder="0" noresize />
>>> </frameset>
>>> </html>
>>> ###
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> 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
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20130607/894152f5/attachment.html 


More information about the IPython-dev mailing list