[IPython-dev] Setting up IPython with IPython-hydra and IPython-proxy
epi
massimodisasha at gmail.com
Fri Jun 7 04:22:40 EDT 2013
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, no clue on what's wrong
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 i'm still on it ...
thanks for any further help.
Il giorno 07/giu/2013, alle ore 04:06, Matthias BUSSONNIER <bussonniermatthias at 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 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/20130607/4ddd8519/attachment.html>
More information about the IPython-dev
mailing list