[Show Brython] Collaborative demonstration using Brython

23 views
Skip to first unread message

André

unread,
May 15, 2014, 3:52:44 PM5/15/14
to bry...@googlegroups.com
Most of you have probably read about my usage of Brython to enable a Python version of my "Karel the robot" clone on the web.  This particular aspect of it is probably not very interesting to most of you.

However ... 

If ever you need to discuss Python/Brython with someone at another location, you might find my site useful: I use TogetherJS from Mozilla (https://togetherjs.com/) to enable screen sharing.

To see how this works:

1. Have someone that you want to collaborate with  (you can fake it by having two browsers opened at the same time)
3. Click on the "World" button at the top to hide the robot world (which, I presume, you won't need)
4. Click on the "Diary" button at the top to see the output (of print() calls)
5. Click on the "Start TogetherJS" button at the top.  This will activate TogetherJS. You'll get a quick introduction that will lead you to copy a url.
6. Share that url with someone else (it could be more than one person)
7. Both of you can now edit the code and run it.

No login required, no tracking (not by me anyway; I can't speak for the Mozilla server that acts as an intermediary), and always free to use.

Notes: 

a) Reeborg's World was first written in Javascript.  I "only" use Brython to translate the Python code in the editor (and some other hidden code specific to the robot world) into Javascript prior execution.  So, it is not a pure Brython site ... and only because I wanted users to be able to use programming languages other than Python (currently Javascript and CoffeeScript ... eventually Scheme, possibly Ruby, etc.). But Python is obviously my favourite, and it is the default when a visitor comes to the site for the first time!
b) I may rename "Start TogetherJS" to something else ("Collaborate" perhaps?...) so the above instructions may be slighlty inaccurate by the time you read this.
c) You might want to share some code with someone at a distance, who is not available for collaboration at that moment.   There is a button with an image of two ovals linked together.  Clicking on this button will create a permalink that saves, among other things, the current content of the editor. This link can then be sent to someone (or posted on the web) so that they can run a program themselves.

One slight problem with those permalinks is that they tend to be quite long ... like this

However, both of the above utilities (TogetherJS and permalink) might be something useful to add to the demonstration Editor on the Brython site. ;-)

Cheers,

André


Olemis Lang

unread,
May 15, 2014, 5:29:07 PM5/15/14
to bry...@googlegroups.com
On 5/15/14, André <andre....@gmail.com> wrote:
> Most of you have probably read about my usage of Brython to enable a Python
>
> version of my "Karel the robot" clone on the web. This particular aspect
> of it is probably not very interesting to most of you.
>
> However ...
>
> If ever you need to discuss Python/Brython with someone at another
> location, you might find my site useful: I use TogetherJS from Mozilla
> (https://togetherjs.com/) to enable screen sharing.
>
> To see how this works:
>

Looks like a very nice idea ...

[...]
>
> However, both of the above utilities (TogetherJS and permalink) might be
> something useful to add to the demonstration Editor on the Brython site.
> ;-)
>

At least a reference in the wiki somewhere ... I guess ...

[...]

--
Regards,

Olemis - @olemislc

Apache(tm) Bloodhound contributor
http://issues.apache.org/bloodhound
http://blood-hound.net

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

Featured article:

Olemis Lang

unread,
May 15, 2014, 5:29:18 PM5/15/14
to bry...@googlegroups.com
On 5/15/14, André <andre....@gmail.com> wrote:
> Most of you have probably read about my usage of Brython to enable a Python
>
> version of my "Karel the robot" clone on the web. This particular aspect
> of it is probably not very interesting to most of you.
>
> However ...
>
> If ever you need to discuss Python/Brython with someone at another
> location, you might find my site useful: I use TogetherJS from Mozilla
> (https://togetherjs.com/) to enable screen sharing.
>
> To see how this works:
>

Looks like a very nice idea ...

[...]
>
> However, both of the above utilities (TogetherJS and permalink) might be
> something useful to add to the demonstration Editor on the Brython site.
> ;-)
>

At least a reference in the wiki/docs somewhere ... I guess ...

Kiko

unread,
May 15, 2014, 5:33:22 PM5/15/14
to bry...@googlegroups.com
2014-05-15 21:52 GMT+02:00 André <andre....@gmail.com>:
Most of you have probably read about my usage of Brython to enable a Python version of my "Karel the robot" clone on the web.  This particular aspect of it is probably not very interesting to most of you.

However ... 

If ever you need to discuss Python/Brython with someone at another location, you might find my site useful: I use TogetherJS from Mozilla (https://togetherjs.com/) to enable screen sharing.

To see how this works:

1. Have someone that you want to collaborate with  (you can fake it by having two browsers opened at the same time)
3. Click on the "World" button at the top to hide the robot world (which, I presume, you won't need)
4. Click on the "Diary" button at the top to see the output (of print() calls)
5. Click on the "Start TogetherJS" button at the top.  This will activate TogetherJS. You'll get a quick introduction that will lead you to copy a url.
6. Share that url with someone else (it could be more than one person)
7. Both of you can now edit the code and run it.

No login required, no tracking (not by me anyway; I can't speak for the Mozilla server that acts as an intermediary), and always free to use.


Hi, André. That's pretty cool. I have one idea in mind to teach/learn Python in some areas where there is no community.

Thanks a lot for the effort!!!!
 
Notes: 

a) Reeborg's World was first written in Javascript.  I "only" use Brython to translate the Python code in the editor (and some other hidden code specific to the robot world) into Javascript prior execution.  So, it is not a pure Brython site ... and only because I wanted users to be able to use programming languages other than Python (currently Javascript and CoffeeScript ... eventually Scheme, possibly Ruby, etc.). But Python is obviously my favourite, and it is the default when a visitor comes to the site for the first time!
b) I may rename "Start TogetherJS" to something else ("Collaborate" perhaps?...) so the above instructions may be slighlty inaccurate by the time you read this.
c) You might want to share some code with someone at a distance, who is not available for collaboration at that moment.   There is a button with an image of two ovals linked together.  Clicking on this button will create a permalink that saves, among other things, the current content of the editor. This link can then be sent to someone (or posted on the web) so that they can run a program themselves.

One slight problem with those permalinks is that they tend to be quite long ... like this

However, both of the above utilities (TogetherJS and permalink) might be something useful to add to the demonstration Editor on the Brython site. ;-)

Cheers,

André


--
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/6d5e18a6-dfd6-47e9-b549-0eac91e3c7e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages