Visualizations don't work in Jupyter Lab. I see just empty (white) plots. In Jupyter Notebook everything is OK.
Visualizations should be available from Jupyter Lab.
optuna.visualization.plot_slice(study)
Or any other plot.
Screenshot of empty visualization:

There is an error in the browser console:


@srizvan Did you follow the steps stated here?
@srizvan Thank you for reporting the issue.
I reproduced your issue and found that the additional installation step suggested by @harupy solved it as follows:

@harupy Thank you for your information.
@harupy Yeah, that worked for me. Thank you.
I think, link to these additional steps should be provided in optuna docs in the "Installation" section.
@srizvan Thank you for your feedback.
I created a PR (https://github.com/optuna/optuna/pull/843) to update the document for JupyterLab users to solve this issue. Please let me know if you have any comments.
Most helpful comment
@srizvan Thank you for your feedback.
I created a PR (https://github.com/optuna/optuna/pull/843) to update the document for
JupyterLabusers to solve this issue. Please let me know if you have any comments.