Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thank you very much for the program! #36

Closed
mrkaban opened this issue Oct 11, 2020 · 1 comment
Closed

Thank you very much for the program! #36

mrkaban opened this issue Oct 11, 2020 · 1 comment

Comments

@mrkaban
Copy link

mrkaban commented Oct 11, 2020

Hello, thank you very much for a good program under a free open source license! Added a program to a Russian-language site about free software, here is the link.

The project is interesting, so please don't abandon it!

The only question is how to run a python script directly from the editor?

@matkuki
Copy link
Owner

matkuki commented Oct 11, 2020

Hello @mrkaban ,
Thank you very much for the kind words and support.
It will not be abandoned, no worries, as I use it for work every day,

The way a script from a file can currently be run is in the REPL using: run_command("python path/to/my_script.py") or the shorthand rc: python path/to/my_script.py. But that uses the system's Python interpreter, are you asking for a way to run a script with ExCo's python? That can be added as a built-in function if needed.

But if you just need to run code, Ctrl+5 brings up the multiline REPL, paste the code in and press Ctrl+Enter or Return (the small Enter on the right of the arrow keys). Note that some built-in functions are overridden, like open, print, ... For example, to print a message to the REPL MESSAGES window use the echo function.

Example:
image

This could probably be improved, as discoverability of the Multiline REPL is not that obvious. If you have any suggestions, let me know.

@matkuki matkuki closed this as completed Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants