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.

No plots appearing when using visualisation tools.

See original GitHub issue

Hello, I am using Spyder to write my python code, and I am using optuna to optimise my neural network. When I try any of the optuna’s visualisation commands, there is no plot appearing in the Plots section of the Spyder interface.

Amongst the lines I tried are the following

fig = optuna.visualization.plot_slice(study, 
                                  params=["network_params['conv_layer_out_channels'][1]",
                                          "network_params['conv_layer_out_channels'][1]"])
optuna.visualization.plot_intermediate_values(study)
optuna.visualization.plot_optimization_history(study)
optuna.visualization.plot_param_importances(study)

Is there a way how I can use the Figure object fig that is returned by optuna visualisation methods to force the plot to be created?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
AraceliALcommented, Jul 6, 2022

You can also use optuna.visualization.matplotlib.plot_intermediate_values(study)

1reaction
SonghuaHu-UMDcommented, Jul 13, 2021

You may use the browser to show the figure since Spyder did not support the figure in plotly. optuna.visualization.plot_intermediate_values(study).show(renderer="browser")

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gallery of Missing Data Visualisations
This plot provides a specific visualiation of the amount of missing data, showing in black the location of missing values, and also providing ......
Read more >
RStudio suddenly stopped showing plots in the plot pane
Go to Tools->Global Options->Rmarkdown · In "Show output preview in" select "Viewer Pane" · Uncheck the box "Show output inline for all R...
Read more >
An Overview of Common Data Visualization Mistakes - Toptal
In data visualization, occlusion obscures important data and creates false hierarchies wherein unobstructed graphics appear most important. Distortion occurs ...
Read more >
Plots not showing up in the 'plots' pane in RStudio - With R ...
I've rebooted/restarted multiple times. As a side note, my graphs will show up in the code area and when I paste the code...
Read more >
Data visualization with ggplot2 - Data Carpentry
For example, it may be worth changing the scale of the axis to better distribute the observations in the space of the plot....
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