I never tried it, but I alaways assumed things liek this should "just
work". Can you give it a try and tell us the results?
On 3 December 2017 at 14:32, André <andre....@gmail.com> wrote:
> Hello everyone,
>
> Has anybody ever used Electron (https://electronjs.org/) to create a desktop
> version of a web app that uses Brython? If so, can you describe how you did
> it, and if there was any particular issue to pay attention to?
>
> The reason I am asking is that someone has asked if my app
> (http://reeborg.ca/reeborg.html) could be made to work on individual
> students' computers as they apparently cannot rely not only on Internet
> access (for accessing my public site), but also not on the internal network,
> for which I had created a special version
> (https://github.com/aroberge/reeborg-dist). The best potential solution I
> could think of was to create a desktop app using Electron - but I have no
> experience with it (yet).
>
> Feel free to comment on this list (obviously) or on an issue I created on
> this topic on my project's repository
> (https://github.com/aroberge/reeborg/issues/391). [If you are just
> interested in following any development of this for my project, feel free to
> comment on that issue so that Github can alert you of any update.]
>
> 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+unsubscribe@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/57ef96a1-bfc3-4eda-8e1b-a1be1f16da1b%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "brython" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/brython/0HE7DkqS4pg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to brython+unsubscribe@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/CAH0mxTRLnh-KP%2Bdmu-xw2%3DitdBJuvd7SZn6nS2ojFCLtphep4A%40mail.gmail.com.
[...]
Ideally it should be possible to run the same (Python) code in both
Brython and CPython , and Jython , and ... this was one of the reasons
why I liked PyBee approach . Code should be mostly the same , Batavia
(and other project I do not recall the name of now) adjusts the
details to run that code on browsers (js) , others do the same for
Java, Android , iOS, and other environments . But still code is
written once and ported across environments .
That's the way I see it useful . Brython is quite focused on the
browser , so maybe part of (or everything) I said is off topic . Feel
free to fork the conversation in that case .
--
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
SciPy Latin America - Cuban Ambassador
Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/
Featured article:
--
You received this message because you are subscribed to a topic in the Google Groups "brython" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/brython/0HE7DkqS4pg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to brython+unsubscribe@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/CAGMZAuMcACqDNFYBFOGznJ__qkW9M_5hTSDxw%3Dgoe4_6cCJyDA%40mail.gmail.com.
Ideally it should be possible to run the same (Python) code in both
Brython and CPython , and Jython , and ...
My app is about 95 % Javascript (over 17,000 lines of code, not including tests, mostly written by myself), and makes use of external libraries such as jQuery and jQueryUI. Brython plays a crucial part, but I use it mostly to execute Python code entered by the users.So, most unfortunately, I need to look outside of the Python world to turn it into a desktop app.
--
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+unsubscribe@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/57ef96a1-bfc3-4eda-8e1b-a1be1f16da1b%40googlegroups.com.
--
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.
--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/57ef96a1-bfc3-4eda-8e1b-a1be1f16da1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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+unsubscribe@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/dec65b90-cd85-472e-9987-13d5efd3277c%40googlegroups.com.
Indeed if a server can work loccally using Python why don't you use a browser.
Jupyter does that so why Reeeborg can't do that also.
The main problem to solve is to produce a version of Reeborg that don't need internet to work, but this seems to have been done.
The minor problem is to give a click-to-launch script but this
should be very easy to do.
El lunes, 4 de diciembre de 2017, André <andre....@gmail.com> escribió:
On Monday, 4 December 2017 13:58:19 UTC-4, kiko (on pybonacci) wrote:
2017-12-03 17:32 GMT+01:00 André <andre....@gmail.com>:
Hello everyone,
Has anybody ever used Electron (https://electronjs.org/) to create a desktop version of a web app that uses Brython? If so, can you describe how you did it, and if there was any particular issue to pay attention to?
The reason I am asking is that someone has asked if my app (http://reeborg.ca/reeborg.html) could be made to work on individual students' computers as they apparently cannot rely not only on Internet access (for accessing my public site), but also not on the internal network, for which I had created a special version (https://github.com/aroberge/reeborg-dist). The best potential solution I could think of was to create a desktop app using Electron - but I have no experience with it (yet).
Feel free to comment on this list (obviously) or on an issue I created on this topic on my project's repository (https://github.com/aroberge/reeborg/issues/391). [If you are just interested in following any development of this for my project, feel free to comment on that issue so that Github can alert you of any update.]
Cheers,
André
Other option:
PyQt5/PySide2.
I've tested the following simple code and it works:
Files brython.js, index.html and main.py should be on the same folder.
File brython.js is already known.
File index.html is a dummy example:
<!DOCTYPE html>
<html><head>
<meta name="description" content="Brython">
<meta name="keywords" content="Python,Brython">
<meta name="author" content="Pierre Quentel">
<meta http-equiv="content-type" content="text/html; enable Javascript to view this page correctly.</noscript>
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/CAB-sx615hDtX6FOKYS-amzUaiwWbE61ntTf5%3DiwWUT5xMSCNpQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
-- Christophe BAL Enseignant Agrégé de Mathématiques Programmeur Python Amateur
Indeed if a server can work loccally using Python why don't you use a browser.
Jupyter does that so why Reeeborg can't do that also.
The main problem to solve is to produce a version of Reeborg that don't need internet to work, but this seems to have been done.
The minor problem is to give a click-to-launch script but this should be very easy to do.
In that case, Electron should be your "only" friend.
--
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/CAGMu_%3DofnRjJes5j6FHMty%2Bvajqbn-8qcFUO5hoK9yoH32j2WA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.