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

Python IDEs and Tools Compatibility #284

Open
fniephaus opened this issue Sep 19, 2022 · 8 comments
Open

Python IDEs and Tools Compatibility #284

fniephaus opened this issue Sep 19, 2022 · 8 comments
Assignees

Comments

@fniephaus
Copy link
Member

TL;DR

We plan to gradually improve support for popular Python IDEs and tools in GraalPy.

Goals

In addition to compatibility with popular Python packages (#283), we also focus on compatibility with tools such as pdb and pyenv as well as with IDEs for Python such as VS Code or PyCharm. This should make it easier for Python developers to switch to GraalPy as their Python interpreter using their preferred set of tools.

Non-Goals

  • Build dedicated IDE/editor extensions for GraalPy support.
  • Build a new IDE for GraalPy
@ahmednrana
Copy link

Is there any update on this. Does pycharm / vscode work with Graalpy.

  • Does it provides autocompletion for Java in python?
  • Can we debug it using these tools?

@timfel
Copy link
Member

timfel commented Jul 16, 2024

Is there any update on this. Does pycharm / vscode work with Graalpy.

* Does it provides autocompletion for Java in python?

No, this would need special extensions for these IDEs that go beyond supporting the existing Python tools, libraries, and IDEs. It's not that we won't do it, but it's not part of this ticket.

* Can we debug it using these tools?

Debugging with PyCharm works, VSCode unfortunately uses a fork call that cannot be supported on GraalPy and we have to work with the VSCode developers to add support for GraalPy.

@msimacek
Copy link
Contributor

I think the question about debugging was also about Java code. It's not possible to debug both Java and Python with a single debugger. But it's possible to attach a Java debugger (from a Java IDE like IntelliJ IDEA) to the python process and then debug the Java parts separately. To do that you need to add --vm.Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=y argument to the python invocation and configure remote debugging in the Java IDE to connect locally to port 8000. You can have both a Python debugger and a Java debugger attached to the same process.

@ciscorucinski
Copy link

uv is gaining a lot of support

@timfel
Copy link
Member

timfel commented Oct 10, 2024

uv is gaining a lot of support

uv supports GraalPy already 🙂 astral-sh/uv#5141

@meoyawn
Copy link

meoyawn commented Nov 16, 2024

uv is gaining a lot of support

uv supports GraalPy already 🙂 astral-sh/uv#5141

are there any examples of hooking up gradle + graalpy + uv? Specifically about adding pypi packages https://www.graalvm.org/latest/reference-manual/python/:
image

@timfel
Copy link
Member

timfel commented Nov 16, 2024

@meoyawn you mind describing (ideally in a separate issue) what you think you would gain from uv in this context? How the Gradle and Maven plugins install packages is an implementation detail at this point. I'm not sure what difference it makes how the packages are installed since from the developer UX it should appear as part of the Gradle or Maven are lifecycle phases

@Cypherscircle

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

7 participants