local_study = optuna.load_study(study_name="foo", storage="SQLITE URL") remote_study = optuna.create_study(study_name="foo", storage="REMOTE SQL DB URL") for trial in local_study.trials: remote_study.add_trial(trial)
fig = optuna.visualization.plot_slice(study) fig.write_image("<filename>.png") # save to image fig.write_html("<filename>.html") # save to html