question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Visualizations don't work in Jupyter Lab

See original GitHub issue

Visualizations don’t work in Jupyter Lab. I see just empty (white) plots. In Jupyter Notebook everything is OK.

Expected behavior

Visualizations should be available from Jupyter Lab.

Environment

  • Optuna version: 1.0.0
  • Python version: 3.7.4
  • OS: Ubuntu 18.04.3
  • (Optional) Other libraries and their versions: plotly==4.4.1 jupyterlab==1.2.4 jupyterlab-server==1.0.6

Steps to reproduce

  1. Create a study object.
  2. Run study.optimize
  3. Plot any visualization.

Reproducible examples (optional)

optuna.visualization.plot_slice(study)

Or any other plot.

Additional context (optional)

Screenshot of empty visualization: image There is an error in the browser console: Screenshot from 2020-01-15 20-26-45 Screenshot from 2020-01-15 20-27-13

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
harupycommented, Jan 16, 2020

@srizvan Did you follow the steps stated here?

2reactions
toshihikoyanasecommented, Jan 17, 2020

@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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JupyterLab output doesnt show visualization - Stack Overflow
The reason behind this is that displacy.serve will start a web server to show the visualization in a browser – all of which...
Read more >
Interactive Visualizations In Jupyter Notebook | by Alex Martinelli
This entry is a non-exhaustive introduction on how to create interactive content directly from your Jupyter notebook.
Read more >
How to Create a Data Visualization in Jupyter Notebook Using ...
HOW TO CREATE A DATA VISUALIZATION IN JUPYTER NOTEBOOK USING ATOTI //In this walkthrough we'll see how we can create data visualizations and ......
Read more >
Hide or remove content - Jupyter Book
It's possible to control which content shows up in your book. For example, you may want to display a complex visualization to illustrate...
Read more >
Embed NengoGUI style model visualization in Jupyter ...
... style visualization of a nengo model in a jupyter notebook? ... I tried the example but it doesn't seem to work on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found