In my previous post, I showed how I use jEMach to turn REPL commands into procedures. I wanted to share more about the idea behind the project and how it works now.
I often use the Julia REPL to try things step by step. During my research on quark-gluon plasma, for example, I run numerical calculations and create plots to check my predictions. After some time, I have many variables and commands in the session. Some of those commands are useful and I want to use them again later.
That is why I started working on jEMach. I wanted a way to see what is happening in my Julia session and keep useful work for later, while staying in the terminal.
jEMach opens a terminal interface next to the Julia REPL. It has four main views:
-
Workspace shows variables, their types and values. You can also explore arrays, matrices, DataFrames, and fields of structs that you created in repl or imported from various packages.
-
History shows commands from the REPL. You can select commands to create a procedure, or send an old command back to the REPL.
-
Procedures shows the procedures you have saved. You can run them again or edit their arguments in the REPL. i am still working on it
-
Packages lets you look at the packages in your project and add, remove, or update them.
For example, after trying several commands in the REPL, you can open History with 2, select the commands with Space, and press p. jEMach creates a Julia file in the procedures/ folder. You can open that file, clean up the code, add comments, and use the procedure again when working on the project.
jEMach started as part of my Neovim workflow, but the terminal interface now works without Neovim. It supports tmux, and ghostty, but I am looking forward for other possible backend s.
How to install:
julia
]
# pkg>
add https://github.com/kitajusSus/jEMach
# or using Pkg API:
using Pkg
Pkg.add(url="https://github.com/kitajusSus/jEMach")
github:




