[brythonmagic] Released version 0.2.1

30 views
Skip to first unread message

Kiko

unread,
Apr 23, 2016, 1:49:16 PM4/23/16
to bry...@googlegroups.com
Hi all,

I would like to announce the release of brythonmagic v0.2.1.

This release is possible thanks to the effort of the brython developers, specially PIerre, who fixed some stuff to allow brythonmagic continue working (https://github.com/brython-dev/brython/issues/414).

What is brythonmagic?
---------------------------------
brythonmagic provides you a cell magic, %%brython, to run brython code and show the results in a html div tag below the code cell.

So, you can use Python code to play with some cool javascript libraries n the cool Jupyter notebook.

To better understand what it does you can have a look to this video: https://www.youtube.com/watch?v=adQzjuUX0kw&feature=youtu.be

What is brython?
------------------------
Brython is a CPython 3 implementetion written in javascript that runs on the client side of your browser (http://brython.info/)

Release notes:
---------------------
Fixed some strange errors on brython to make brythonmagic works fine on the Jupyter notebook.
  • Added some functions to easily load javascript libraries that can be used by brython in the notebook:
    • load_brython_stable: will load the latest brython_dist.js stable release from http://www.brython.info/src/brython_dist.js.
    • load_brython_dev: will load the latest brython_dist.js development version from github using rawgit.
    • load_js_lib: Allows you to load javascript libs using a string indicating the url.
  • Updated the code to make it work with latest jupyter releases.

Issues:
-----------
If you find any issue, please, report it here: https://github.com/kikocorreoso/brythonmagic/issues

More info:
--------------
https://github.com/kikocorreoso/brythonmagic

Brandon Keith Biggs

unread,
Apr 23, 2016, 7:37:36 PM4/23/16
to bry...@googlegroups.com
Hello,
This is amazing! Is there any way to see the libraries written for Brython on the Brython website?
I know there are not many, but hopefully there will be more as time goes on and currently this is the only one I know of!
Also, how does one install packages? just copy them into site-packages?
It may be useful to create a pip-like device that will install packages like pip would.
Thanks,

--
You received this message because you are subscribed to the Google Groups "brython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brython+u...@googlegroups.com.
To post to this group, send email to bry...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/CAB-sx63r23ba95A3s9dHA-tS41DjGVjBqgFtD5W%2BKWg7A0k1Wg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Olemis Lang

unread,
Apr 24, 2016, 12:37:25 PM4/24/16
to bry...@googlegroups.com
On 4/23/16, Brandon Keith Biggs <brandonk...@gmail.com> wrote:
> Hello,

Hi !

> This is amazing! Is there any way to see the libraries written for Brython
> on the Brython website?

Brython org @ github [1]_ and Brython in the wild wiki page [2]_

Kiko and Pierre what d'u think about adding brythonmagic to brython-dev org ?

> I know there are not many, but hopefully there will be more as time goes on
> and currently this is the only one I know of!

Should you know of more just send us pull requests to update wiki docs .

> Also, how does one install packages? just copy them into site-packages?

Copying package files in site-packages in supported , yes .

> It may be useful to create a pip-like device that will install packages
> like pip would.

What stops you from doing so ? You can create your own virtualenvs
install whatever you want in there and publish env root folder via
HTTP . Once you do so in the client side you either setup sys.path or
use <link rel="pythonpath" /> tags in page <header/> in order to add
your venv URL to PYTHONPATH . This should work as long as packages
consist in pure Python code (i.e. no C extensions) .

> Thanks,
>

.. [1] https://github.com/brython-dev

.. [2] https://github.com/brython-dev/brython/wiki/Brython-in-the-wild

[...]

--
Regards,

Olemis - @olemislc

Apache™ Bloodhound contributor
http://issues.apache.org/bloodhound
http://blood-hound.net

Brython committer
http://brython.info
http://github.com/brython-dev/brython

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:

Brandon Keith Biggs

unread,
Apr 24, 2016, 4:09:58 PM4/24/16
to bry...@googlegroups.com
Hello,
This is good to know about, but could it be put on the Brython homepage under the gallery?
Otherwise it is really difficult to get to.
if one doesn't know what they are looking for.
Thanks,

--
You received this message because you are subscribed to the Google Groups "brython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brython+u...@googlegroups.com.
To post to this group, send email to bry...@googlegroups.com.

Olemis Lang

unread,
Apr 24, 2016, 5:35:52 PM4/24/16
to bry...@googlegroups.com
On 4/24/16, Brandon Keith Biggs <brandonk...@gmail.com> wrote:
> Hello,
> This is good to know about, but could it be put on the Brython homepage
> under the gallery?
> Otherwise it is really difficult to get to.
> if one doesn't know what they are looking for.
>
[...]

This feature is well documented [1]_ , if that's what you mean .

.. [1] http://brython.info/static_doc/en/import.html

Brandon Keith Biggs

unread,
Apr 24, 2016, 6:44:25 PM4/24/16
to bry...@googlegroups.com
Hello,
No, I was meaning brython-dev. There is not enough awareness given to external modules.
Thanks,

--
You received this message because you are subscribed to the Google Groups "brython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brython+u...@googlegroups.com.
To post to this group, send email to bry...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages