jython Questions
4
Solved
I am prototyping an interface to our application to allow other people to use python, our application is written in java. I would like to pass some of our data from the java app to the python code ...
7
Solved
I have a python app and java app. The python app generates input for the java app and invokes it on the command line.
I'm sure there must be a more elegant solution to this; just like using JNI to...
2
Solved
I have a Scala Spark application and want to invoke pySpark/python (pyspark_script.py) for further processing.
There are multiple resources to use Java/Scala code in Python but I am looking for sca...
Empale asked 12/8, 2021 at 19:27
13
Solved
I am wondering if it is possible to call Python functions from Java code using Jython, or is it only for calling Java code from Python?
4
Solved
I have found this answer to a seemingly similar issue, however (since I'm novice into Python) I am not sure how to implement this solution in my code (if it's the same issue after all).
In my code...
2
Solved
I have a gui.py file containing the following code:
from javax.swing import JFrame, JPanel, Box, JComboBox, JSpinner, JButton, JLabel, SpinnerNumberModel, WindowConstants
from java.awt import BoxL...
1
I have tried using PyDev Extension for VS Code. I intend to use vs code for Jython.
However, I get this
from java.util import Date
Date shows unresolved error in Vs code.
Can any one guide me h...
Byrdie asked 16/5, 2018 at 12:58
9
Solved
Several processes with the same name are running on host. What is the cross-platform way to get PIDs of those processes by name using python or jython?
I want something like pidof but in python. ...
Windswept asked 15/2, 2009 at 10:23
7
Solved
It is standard convention to use if foo is None rather than if foo == None to test if a value is specifically None.
If you want to determine whether a value is exactly True (not just a true-like v...
2
Solved
I would like to test from inside a running Python program if the interpreter is running pyston, jython, ironpython, pypy and so on.
The things that come to mind are pattern matching on system.ver...
4
Solved
According to Jython's documentation:
Jython is an implementation of the
Python language for the Java platform.
Jython 2.5 implements the same
language as CPython 2.5, and nearly
all of...
Buff asked 28/2, 2010 at 12:21
4
I am trying to run jython servlets on Windows. I can’t run even the most simple HelloWorld.py. I get the following 500 error:
message Servlet.init() for servlet [PyServlet] threw exception
...
de...
Granjon asked 11/1, 2018 at 21:18
4
Solved
I started studying python a couple of month ago, then I found Jython.
Do threads work properly in Jython, since it doesn't have a GIL? If so, can you suggest a good book on concurrency (threading)...
Nad asked 13/5, 2012 at 0:2
4
Solved
I am invoking the script from ant . I am getting it as a single string from the caller but python is strangely treating it as two individual strings.I have script that reads a file name with it's p...
8
Solved
I have an array with Field Names and jdbc Type codes.
(Those int codes that you can find in
http://download.oracle.com/javase/1.4.2/docs/api/constant-values.html#java.sql.Types.BIT
I use a level...
2
I'm trying to benchmark a Monte Carlo calculation of PI (3.14159) throwing darts. I've implemented my code in Java, Groovy, BeanShell, Julia, Jython and Python (Python2 implemented in C).
Here is m...
1
Appendix A of The Definitive Guide to Jython describes downloading SetupTools for use with Jython.
https://jython.readthedocs.io/en/latest/appendixA/
This indicates to me that it should be possible...
Gallonage asked 10/7, 2020 at 16:53
0
What I want
I want to create a GUI in Python which allows for a node-linkage interaction which encapsulates Python code/objects/functions. The following examples are the kinds of functionali...
Jail asked 6/1, 2020 at 17:22
3
Solved
I downloaded jython_installer-2.5.2.jar from jython.org.
Opened the terminal and gave this command:-
java -jar jython_installer-2.5.2.jar
It was installed in a folder named jython2.5.2 in the ...
Tletski asked 29/4, 2011 at 19:34
6
Solved
I'm looking for a production quality bloom filter implementation in Python to handle fairly large numbers of items (say 100M to 1B items with 0.01% false positive rate).
Pybloom is one opti...
Sardou asked 22/11, 2008 at 10:53
10
Solved
I know Python, but what is Jython?
When will I need Jython?
What are the drawbacks?
I assume it is slow?
Please detail it out! thanks.
5
Solved
I'm working on a small django project that will be deployed in a servlet container later. But development is much faster if I work with cPython instead of Jython. So what I want to do is test if my...
6
Solved
I have a classifier that I trained using Python's scikit-learn. How can I use the classifier from a Java program? Can I use Jython? Is there some way to save the classifier in Python and load it in...
Rhinoceros asked 5/10, 2012 at 2:50
3
Solved
I found this as one of the ways to run (using exec() method) python script from java. I have one simple print statement in python file. However, my program is doing nothing when I run it. It neithe...
Amabel asked 25/1, 2019 at 5:0
7
Solved
Ive decided that I really dont like microsoft and their ways. Please could you give me directions on how to handle winmail.dat in emails, is there a jython library or a java library that will allow...
Alible asked 3/12, 2008 at 8:41
1 Next >
© 2022 - 2024 — McMap. All rights reserved.