Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java's interactive shell like ipython

Tags:

java

shell

I am quite new to Java and would like to learn Java using an interactive shell, like I did with Python using IPython.

I have tried a few interactive shells, such as beanshell, jython, jythonconsole, and JyConsole. Most of them don't have tab completion like IPython does. Is there anything similar to IPython for java?

like image 627
Ross Avatar asked Jun 06 '09 01:06

Ross


People also ask

What is an IPython shell?

IPython (Interactive Python) is a command shell for interactive computing in multiple programming languages, originally developed for the Python programming language, that offers introspection, rich media, shell syntax, tab completion, and history.

Is there a Java shell?

The Java Shell tool (JShell) is an interactive tool for learning the Java programming language and prototyping Java code. JShell is a Read-Evaluate-Print Loop (REPL), which evaluates declarations, statements, and expressions as they are entered and immediately shows the results.


1 Answers

groovysh:

http://groovy.codehaus.org/Groovy+Shell

  • Rich cross-platform edit-line editing, history and completion thanks to JLine.
  • ANSI colors (prompt, exception traces, etc).
  • Simple, yet robust, command system with online help, user alias support and more.
  • User profile support
like image 186
gavenkoa Avatar answered Sep 22 '22 23:09

gavenkoa