Jython support?

Is there jython support in pycharm? or intellij?


0
9 comments
Avatar
Permanently deleted user

No reply needed. I searched the forums after posting this and found that PyCharm doesn't support Jython, and has no plans to.

There is some limited support in IntelliJ IDEA from what I've read, but I've not gotten it to work in the evaluation version.

Thanks,
Christian

0

Hello Christian,

PyCharm does fully support Jython as a Python intepreter; you can run and

debug your code under Jython. What PyCharm does not support is integration

with Java (if you calling Java code from your Python classes, you won't get

any coding assistance for the Java methods).

The IntelliJ IDEA Python plugin does support the integration with Java.

No reply needed. I searched the forums after posting this and found

that PyCharm doesn't support Jython, and has no plans to.

There is some limited support in IntelliJ IDEA from what I've read,

but I've not gotten it to work in the evaluation version.

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

1
Avatar
Permanently deleted user

Hi Dimitry,

Thank you for the response with clarification.

Is it possible for you to point me to some documentation for getting the java integration in IDEA+Python plugin to work?

I can't get basic autocomplete for importing 'javax.tools', etc or any Java files.

Thanks,
Christian

0
Avatar
Permanently deleted user

I've been trying to get this to work all day in Intellij IDEA, but I cant get the project/module/dependenc/classpath config just right such that I can call java code from within python (using the jython interpreter), and/or get any kind of autocomplete. If I do it from the command line, it works fine.

I've tried creating a Java project with a python facet.

I've tried creating a java project with python submodule. Also a python project with a java submodule, etc. Also tried adding all kinds of dependencies from the out/production/<module_name> (where the .class files are) to trying to add the java class to the 'sources' of the python content root.

Nothing works.

Any clues?

If I get it working, I intend to write a blog detailing how to get it to work, because I haven't seen any indications from doing google searches on how to get this.

Thanks in advance,

Christian

0
Avatar
Permanently deleted user

Dimitry, Any suggestions?

Thanks!

Christian

0

Hello Christian,

The Java/Python integration is indeed broken in the currently available version

of the Python plugin. It will be fixed in the next release of the plugin

for IntelliJ IDEA 10.5.

I've been trying to get this to work all day in Intellij IDEA, but I

cant get the project/module/dependenc/classpath config just right such

that I can call java code from within python (using the jython

interpreter), and/or get any kind of autocomplete. If I do it from the

command line, it works fine.

I've tried creating a Java project with a python facet.

I've tried creating a java project with python submodule. Also a

python project with a java submodule, etc. Also tried adding all kinds

of dependencies from the out/production/<module_name> (where the

.class files are) to trying to add the java class to the 'sources' of

the python content root.

Nothing works.

Any clues?

If I get it working, I intend to write a blog detailing how to get it

to work, because I haven't seen any indications from doing google

searches on how to get this.

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0
Avatar
Permanently deleted user

Indeed, python support seems better in 10.5 with the updated plugin but I face some strange problems.

  • Auto-completion
    • of python module works like a charm but java libs within jython classpath auto-complete only in the "java like import way"
    • for instance, try to type "from com.myjavalib import *" does not work but "import com.myjavalib" works
  • Debug execution
    • java libs are not recognized even if present under external libraries under my jython 2.5.2 interpreter library
  • Am I missed something?

    Thanks in advance.

    0

    How to debug Jython code  with IDEA + PYthon plugin?

    0

    Please sign in to leave a comment.