Title: Plot in generated jupyter notebook not visible · Issue #830 · CATIA-Systems/FMPy · GitHub
Open Graph Title: Plot in generated jupyter notebook not visible · Issue #830 · CATIA-Systems/FMPy
X Title: Plot in generated jupyter notebook not visible · Issue #830 · CATIA-Systems/FMPy
Description: With recent Jupyter versions the plots in the notebooks generated by the FMPy GUI are not displayed. This is the notebook I get with fmpy 0.3.26 from the well known CoupledClutches FMU: import fmpy from fmpy import * filename = 'CoupledC...
Open Graph Description: With recent Jupyter versions the plots in the notebooks generated by the FMPy GUI are not displayed. This is the notebook I get with fmpy 0.3.26 from the well known CoupledClutches FMU: import fmpy...
X Description: With recent Jupyter versions the plots in the notebooks generated by the FMPy GUI are not displayed. This is the notebook I get with fmpy 0.3.26 from the well known CoupledClutches FMU: import fmpy...
Opengraph URL: https://github.com/CATIA-Systems/FMPy/issues/830
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Plot in generated jupyter notebook not visible","articleBody":"With recent Jupyter versions the plots in the notebooks generated by the FMPy GUI are not displayed.\n\nThis is the notebook I get with fmpy 0.3.26 from the well known CoupledClutches FMU:\n\n```Python\nimport fmpy\nfrom fmpy import *\n\nfilename = 'CoupledClutches.fmu'\n\nstart_values = {\n # variable start unit description\n 'CoupledClutches1_T2': (4.00000000000000000e-01, 's'), # T2\n 'CoupledClutches1_freqHz': (2.00000000000000000e-01, 'Hz'), # freqHz\n 'minsamplestep': (2.50000000000000000e-02, 's'), # Minimum time step between samples in binary data file\n 'binfilename': 'DISABLED', # Name of binary data file\n}\n\noutput = [\n 'outputs[1]', # J1.w\n 'outputs[2]', # J2.w\n 'outputs[3]', # J3.w\n 'outputs[4]', # J4.w\n]\n\nresult = simulate_fmu(filename, start_values=start_values, output=output, stop_time=1.5)\n\nplot_result(result)\n```\n\nThe plot is not shown when this notebook is executed in Jupyter Lab 4.5.0.\n\nThe proposed solution from [this answer](https://stackoverflow.com/a/77768408/8725275) on stackoverflow works.\nAfter adding the following lines to the start of the notebook, the plot is visible:\n\n```\nimport plotly.io as pio\npio.renderers.default = 'iframe'\n```\n\n","author":{"url":"https://github.com/m-kessler","@type":"Person","name":"m-kessler"},"datePublished":"2025-12-12T10:20:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/830/FMPy/issues/830"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:207fed73-167b-483d-c400-b77ce2efcc1d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D96C:147F26:5D5454:81E579:6A4BCDB5 |
| html-safe-nonce | ca1dd3047004bbfbd1de07f46923760e4eccacc40d0f05ad2188a9e9ab78102c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTZDOjE0N0YyNjo1RDU0NTQ6ODFFNTc5OjZBNEJDREI1IiwidmlzaXRvcl9pZCI6IjQxNjkyNDUzNzU4NzIwOTM2MjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 838575ff2c52e8750824ec03448bb7f91188796e75a84bec72b1685816b18ed5 |
| hovercard-subject-tag | issue:3722869150 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/CATIA-Systems/FMPy/830/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ebdad3db3e486fb05ece40946867dca29cb56fe9bc96d1dc11c8fcfff62153a3/CATIA-Systems/FMPy/issues/830 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ebdad3db3e486fb05ece40946867dca29cb56fe9bc96d1dc11c8fcfff62153a3/CATIA-Systems/FMPy/issues/830 |
| og:image:alt | With recent Jupyter versions the plots in the notebooks generated by the FMPy GUI are not displayed. This is the notebook I get with fmpy 0.3.26 from the well known CoupledClutches FMU: import fmpy... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | m-kessler |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9df996be9551ac02247d09a2f7f64ece66c35ca28885d346e98fdfda9cdaa37b |
| turbo-cache-control | no-preview |
| go-import | github.com/CATIA-Systems/FMPy git https://github.com/CATIA-Systems/FMPy.git |
| octolytics-dimension-user_id | 28756625 |
| octolytics-dimension-user_login | CATIA-Systems |
| octolytics-dimension-repository_id | 91576871 |
| octolytics-dimension-repository_nwo | CATIA-Systems/FMPy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 91576871 |
| octolytics-dimension-repository_network_root_nwo | CATIA-Systems/FMPy |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b71208a1c9ec7ccf364087569d0551f665dda674 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width