<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-03 18:13 GMT+01:00 Paul Ivanov <span dir="ltr"><<a href="mailto:pi@berkeley.edu" target="_blank">pi@berkeley.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="">Kiko, on 2014-03-03 08:21,  wrote:<br>
> I would like to show you an extension I made:<br>
><br>
> <a href="https://github.com/kikocorreoso/brythonmagic" target="_blank">https://github.com/kikocorreoso/brythonmagic</a><br>
</div>...<br>
<div class="">> Also, you can have a look to a video I made showing the notebook in action<br>
> in case you don't want to install the extension: <a href="http://youtu.be/adQzjuUX0kw" target="_blank">http://youtu.be/adQzjuUX0kw</a><br>
<br>
</div>This looks great, thanks for sharing. The OpenLayers example in<br>
particular looks quite fun. Might you consider including Brython<br>
as a git submodule? </blockquote><div><br></div><div>Right now my brython.js is a slight modification of the official brython release. Right now it is just a proof of concept. If it is interesting (I think it is) for the IPython community I can PR my modifications to the official brython repo and then you can use brython.js from a cdn or from the official brython site (<a href="http://brython.info">brython.info</a>) so it wouldn't be necessary to load the js libs locally. <br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The Brython Py_VFS.js file contains the<br>
entire Python standard library, from what I understand.<br></blockquote><div><br></div><div>The py_VFS.js doesn't contains the full python stdlib. It contains some js libs and some python libs. You can take a look here:<br>
</div><div>libs (js): <a href="https://bitbucket.org/olemis/brython/src/f13e1f0d94637767c4a5f1b399a9e36c5f8ab5ac/src/libs/?at=default">https://bitbucket.org/olemis/brython/src/f13e1f0d94637767c4a5f1b399a9e36c5f8ab5ac/src/libs/?at=default</a><br>
</div><div>Lib (python): <a href="https://bitbucket.org/olemis/brython/src/f13e1f0d94637767c4a5f1b399a9e36c5f8ab5ac/src/Lib/?at=default">https://bitbucket.org/olemis/brython/src/f13e1f0d94637767c4a5f1b399a9e36c5f8ab5ac/src/Lib/?at=default</a><br>
<br></div><div>For instance, most of the Python C libs are not ported (for example, itertools was programmed from scratch in python). Depending your use case, it wouldn't be necessary to use most of the Brython libs. I think that the 'browser' and 'javascript' modules would be necessary to play with the document and other js libs and the rest of the libraries are already in Python so in the IPython notebook environment maybe it is unnecessary to use them in Brython as you could use them in Python more effectively. So, depending your use case, py_VFS.js can be created only containing the libs you need and it could be a very light add-on to brython.js.<br>
<br></div><div>In the scripts folder of the official brython repo you can find the make_VFS.py and the make_dist.py to create your own js files including just what you need. If someone is interested just let me know and I will try to help or you can ask in the official brython mail list (<a href="https://groups.google.com/forum/?fromgroups=#!forum/brython">https://groups.google.com/forum/?fromgroups=#!forum/brython</a>).<br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
--<br>
                   _<br>
                  / \<br>
                A*   \^   -<br>
             ,./   _.`\\ / \<br>
            / ,--.S    \/   \<br>
           /  `"~,_     \    \<br>
     __o           ?<br>
   _ \<,_         /:\<br>
--(_)/-(_)----.../ | \<br>
--------------.......J<br></blockquote><div><br></div><div>Cool!! :-D<br><br></div><div>Best regards.<br></div></div><br></div><div class="gmail_extra">Kiko<br></div><div class="gmail_extra"><a href="http://pybonacci.wordpress.com">http://pybonacci.wordpress.com</a><br>
</div></div>