-
Notifications
You must be signed in to change notification settings - Fork 38
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
Custom banner for apython #20
Comments
Hi @gnachman, and thanks for creating this issue!
Definitely! I think it makes sense to expose all the optional arguments provided by aioconsole.run_console and aioconsole.set_interactive_policy through the aioconsole/aioconsole/events.py Line 68 in 32fefda
Right now Also I'm quite intrigued by the use of aioconsole in your project, I'll have a look at the corresponding issues on the iTerm2 repo :) Thanks again! |
You can play with it in the nightly build. Select Open Python REPL from the Scripts menu. Do you have any sense for whether apython will be robust to future changes in the Python language? I'd like to let people write scripts without having to put them in a function, but I'm worried that whatever mechanism aioconsole uses to allow |
The project relies on many part of the standard library but most of it can be expected to remain backward compatible. There are a few exceptions though:
Also, feel free to have a look at PR #21 to see if it fits your needs. Do you need a new release once this PR is merged? |
That makes sense. I think it makes sense to start with aioconsole as the REPL but still require people to write regular Python code for their "real" scripts. I commented on #21 but yes, please do make a new release once this is merged. I have to distribute a standalone python environment and it's built by pulling packages with pip and zipping up the result. |
Sounds good!
No problem! |
I plan to use aioconsole's apython for an interactive REPL for iTerm2's upcoming Python scripting API. It's almost perfect, except that customizing the banner is not possible. In order to keep things simple, I would like not to ship my own implementation of your apython script, since I expect it may change over time. Would you be open to adding
--banner
to apython.py?Thanks for a great module!
The text was updated successfully, but these errors were encountered: