13. REPL#
The REPL (Read-Eval-Print Loop) is a simple, interactive computer programming environment that takes single user inputs (i.e., single expressions), evaluates them, and returns the result to the user. The REPL allows you to simply plot data and visualize it in real-time. We recommend using the REPL for quick data visualization and exploration.
Pros of plotting in REPL#
Real-time visualization
Easy to explore data from python REPL
Quick to generate plots
Analyze data deeply by using backends of
matplotlib
Example of Python REPL in neovim#
Reccomended Configuration of gsplot for REPL#
{
"rich": {
"traceback": {}
},
"rcParams": {
"backends": "!Your_Backend!"
},
"axes": {
"ion": true,
"clear": true
},
"show": {
"show": true
},
}
If you want to specify the backends of matplotlib
, you can add rcParams: {"backends": "your_backend"}
to the configuration. For Mac users, you can use rcParams: {"backends": "MacOSX"}
.