Although ikanobori's answer is the way here, I thought I was showing another alternative.
import numpy as np import matplotlib.pyplot as plt import bpython bpython.embed(locals_=locals())
This will run bpython REPL and load local variables and other characters. This would be useful if you would like to have more than one custom shell.
source share