#jython

2025-06-09

Thanks to Werner Fouché's initiative, there is now a @jbangdev catalog for Jython!
As a result, running Jython scripts becomes even easier:

jbang run jython-cli@jython <jython-script>.py

or after install: jython-cli <jython-script>.py

github.com/jython/jbang-catalo

#java #jython #jbang #jdk

Benjamin Rosemannb2m
2025-05-07

Ein lang ersehnter Wunsch von mir: Eigene Methoden in benutzen.

Verfügbar seit Version 3.9.0 und funktioniert seit 3.9.3 auch mit und .

Hier eine Anleitung zur Benutzung im Blog.

fdmlab.landesarchiv-bw.de/work

2025-04-25

We're happy to share that Werner Fouché has written a follow-up article about his Jython/JBang integration effort we shared last week. It provides example code to get you started, including a Spring rest client example.
medium.com/@werner.fouche/runn #jython #jbang

2025-04-13

We're excited to share that there has been an effort by Werner Fouché to integrate Jython with JBang. Please checkout his Medium article to learn how you can run Jython scripts on JBang easily! medium.com/@werner.fouche/runn #jython #jbang @jbangdev

🚐 9Lukas5 🚂 🐧9Lukas5@mastodontech.de
2024-11-17

Imagine:
- small custom tool in #Python2 / #Jython, bundled to an .exe
- Last time bundled was a few years back
- executable used on CI server

Then:
- suddenly all builds across the Server fail 😳
- The CI server and your own PC fail executing your small tool, saying "This application needs #Java 8" 🤔
- But your CI Server and own PC _have_ Java 8 installed 🤨
- The fellas around you have seemingly the same tools installed and can execute the tool 🧐

#programming #magic #CI

2024-06-26

True as always that the way to make software run faster is to make it do less operations. After all, CPUs can only execute a fixed number of operations per unit of time.

Here, I tweaked code for serial section registration that drops execution time from 27 seconds to 100 milliseconds: a 270x speed up.

All it had to do is to search for matching SIFT features in one image only within a predetermined radius centered on one SIFT feature in another image. Extremely effective for when e.g., the maximum translation is known.

The matching code using a KDTree:
github.com/acardona/scripts/bl

The test script:
github.com/acardona/scripts/bl

#FijiSc #java #jython #volumeEM #vEM

🚐 9Lukas5 🚂 🐧9Lukas5@mastodontech.de
2024-04-22

"Type annotations are unsupperted in Python 2"
😒😒

Will man Jython überhaupt noch verwenden? 🤐

#Jython #Python #Python2 #LegacyCode

🚐 9Lukas5 🚂 🐧9Lukas5@mastodontech.de
2024-04-18

Mh...in nem Jython Projekt, in dem im Python Code imports aus ner Java-Bibliothek stattfinden.....wie bring ich meinem IntelliJ bei, dass es die auflöst und nicht als fehlerhafte Imports anzeigt? 🧐

#Python #Java #Jython #IntelliJ

2024-04-01

Announcing coatl-dev/actions v3.1.0.

Features:

- setup-jython: Set up a specific version of Jython and add the command-line tools to the PATH.

github.com/coatl-dev/actions/r

#GitHub #jython #java #zulu #azul

Marcos Dionemdione@en.osm.town
2024-03-23

I wonder how other #python implementations like #pypy and #jython would fare in this:

mastodon.social/@vruz/11214575

I love Python, but 75 times C's energy consumption it's a lot.

Interesting that #Perl seems to fare worse?

2024-01-25

github.com/VincentDary/ghidra-

#GhidraPipe is a plugin to interface custom #ReverseEngineering tools with #Ghidra environment and its #jython API, from everywhere.

$ pip install ghidra-pipe

Joxean Koret (@matalaz)joxean
2024-01-23

Some questions regarding Ghidra:

* NetworkX libraries don't support Jython, right?
* Which Python 3.X bridge is the most used for Ghidra? Is it Ghidrathon? Or perhaps ghidra-bridge?
* Do you happen to know if there are differences big enough to worry about supporting Ghidrathon or Ghidra Bridge?


Marcin Cieślaksaper
2023-12-24

@lkundrak Some years ago developers realized that it became very fast because of VM improvements, without them doing anything

2023-12-05

@geordie

Here is an old-school image processing tutorial for #FijiSc in #jython 2.7 (python for java):

syn.mrc-lmb.cam.ac.uk/acardona

Enjoy!

Antonin Delpeuchpintoch@mamot.fr
2023-07-05

@daieuxetdailleurs @Ettore_Rizza ah c'est intéressant que ça marche avec 3.6.2 et pas 3.7.2… peut-être qu'une mise à jour de #Jython a cassé quelque-chose ? Mais sinon pourquoi ne pas le faire via le service de réconciliation plutôt ? (en réconciliant les Qids, puis ajouter une colonne à partir des valeurs réconciliées, et utiliser la propriété "Sfrwiki" pour obtenir les titres dans fr.wiki)

Tamir Bahartmr232
2023-05-27

The many wonders of supporting a Python2.7 project in 2023...

Thank, Jython!

2023-04-07

The underlying source code is here, if you want to try registering pairs of images with a non-linear transformation such as a thin-plate spline, on the basis of blockmatching features:

github.com/acardona/scripts/bl

#FijiSc #jython #ImageProcessing #java

2023-04-05

Every time I need to run an image processing task, the open source software #FijiSc delivers.

The javadocs are up to date javadoc.scijava.org/ , the libraries just work – particularly #ImgLib2 imagej.net/libs/imglib2/

And the examples of my own tutorial syn.mrc-lmb.cam.ac.uk/acardona written in python 2.7 for the #JVM (#jython), despite some being a decade old, they all just work. Grateful every day for the outstanding backwards compatibility plus the new plugins and libraries that continue to grow fiji.sc

Many thanks to the many, many developers and maintainers, particularly Curtis Rueden, who is presently cutting out a new release: 2.11.0 forum.image.sc/t/plugin-mainta

#ImageProcessing

César Román :python:thecesrom@fosstodon.org
2023-03-11

@aegilops For a while #IronPython appeared to be "stuck" in 2.7 just like #Jython, but in December they released version 3.4 and they've ported f-strings from #CPython 3.6.

I cannot imagine what goes into implementing Python in other programming languages, and for that they deserve my admiration. But it is indeed a shame Jython has not moved past 2.7 in almost eight years.

Maybe Inductive Automation will open their platform to other scripting languages, but until then I'm stuck in 2.7 too.

aegilops :github::microsoft:aegilops@fosstodon.org
2023-03-11

@thecesrom Jythooooooooon! In my best Kirk voice.

:java: and :python: together is a great idea, but not having the Python 3 `main` branch working, and having no clear progress makes it feel like Perl 6 all over again.

They should rename their moribund Jython3 repo, that's just confusing!

It's such a shame, useful Java scripting interfaces languishing in a dying ecosystem.

There was a similar lag with things that embed CPython, but they have an escape route.

#Jython #Jython3 #Python27

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst