Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deactivate JLine for Jython interactive interpreter session?

Jython 2.5 comes with JLine per default.

I would prefer to use the interactive interpreter with rlwrap. It seems that rlwrap is not working if JLine is active.

In Scala I would use rlwrap scala -Xnojline.

Is there a similar option for Jython to deactivate JLine?

like image 472
Paidhi Avatar asked Sep 10 '25 13:09

Paidhi


1 Answers

You can set the jython property python.console to org.python.util.InteractiveConsole. This was the default in Jython 2.2 and is a simple history-less console. You can set this property via the command line like:

jython -Dpython.console=org.python.util.InteractiveConsole

or change the property in your local registry. See http://wiki.python.org/jython/UserGuide#the-jython-registry

like image 196
Frank Wierzbicki Avatar answered Sep 13 '25 05:09

Frank Wierzbicki



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!