DEV Community

A few Python REPL config tricks

Ken Bellows on February 19, 2019

As a result of going back to school for a CS grad degree, I've been using Python a ton for the first time in like 5 years. Over the weekend I was h...
Collapse
 
jonathaneunice profile image
Jonathan Eunice

Importing favored tools and having debugging-on-tap are both great tricks. Love the show-what's-there functions!

The Python REPL, however, is not where it's at. Primitive in 2018. Recommend you try IPython (an enormously improved interactive REPL). Or better yet, Jupyter, which is IPython plus a web-based interactive explore/develop environment. Comes in 2 flavors, Jupyter Notebooks is the mainstream, stable experience; Jupyter Lab is the next-gen interface just now emerging. These take a little getting used to, but they are beyond fantastic upgrades to the old REPL. Once you use them, you'll wonder how you ever made do in the original REPL.

Collapse
 
kenbellows profile image
Ken Bellows

Nice, I'll have to check it out! Do they work with pdb or something similar for debugging? I was working in an environment where an IDE was infeasible, so CLI was all I had to work with

Collapse
 
abdurrahmaanj profile image
Abdur-Rahmaan Janhangeer

Yes repl clearing away sometimes is a bit off. nice article. never thought of it!