in source/ext/switch_lets_plot.py [0:0]
def replace_lib(app, env, docnames):
if env.config.switch_lets_plot:
version_setup = "" if env.config.lets_plot_version is None else "=={0}".format(env.config.lets_plot_version)
subprocess.check_call([
sys.executable,
"-m", "pip", "install", "--force-reinstall", "lets_plot{0}".format(version_setup), "--user"
])