-
Notifications
You must be signed in to change notification settings - Fork 85
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
[WIP] pythonconsole: Import plugin from Pluma #658
base: master
Are you sure you want to change the base?
Conversation
Hi, this works ok, but it seems like we should import a few of the most useful modules by default (os, sys, etc...). |
I'm not sure that would be a good idea in practice:
|
Don't modify po/ files in the PR. It would just get overwritten again on PO imports from Launchpad. Can you explain the steps required for a user to execute code? This is not obvious at all in Pluma, despite the plugin being mentioned in the help contents. |
9b417b5
to
cd6d9e1
Compare
The changes have been removed.
|
Papercut bug: The very first time you enable the plugin and click the bottom bar toggle button, the bar doesn't expand properly. OK, so.. as a user I see python console in the plugin list. Its description is clear enough, it gives me a console in the bottom bar. I click on the bottom bar and a python console appears (assuming we fix the issue above). As a Python dev I recognize the fact that this is an interpreter session and my Xed window has already been instantiated for me and is available as What do I do now? I'm not trying to be smart by asking this. It's not obvious to me why I would want to use a python console in Xed, even as a Python dev. If it's just to mess with Python I can do that in a terminal.. if it's to run what's in my document I'd rather right-click -> Run either on the whole document or on a text selection.. I'm also not sure Xed aims at being an IDE. It can highlight code but its main purpose is to just be a text editor. |
The purpose of the console is to make writing Python plugins for Xed easier. It is much easier and faster to explore APIs and try ideas out in the console rather than:
Before I updated my plugin to support Xed I had to add the Python Console for myself to test things out inside Xed. |
Having the Python Console available makes experimenting and writing Python plugins much easier.
I have tested the plugin in Xed 3.6.6 (Linux Mint 22 MATE Edition) by manually installing the plugin, I have not done a full build/install test though.