matplotlib / matplotlib/ipympl
Version 0.5.0+ no longer displays output after widget interaction
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Jupyter Notebook
- Sterne
- 1.7k
- Forks
- 234
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
I have not labeled this as a "bug report" as I am not sure whether this is a new feature or regression.
I am developing a package for the processing of NMR spectra that makes extensive use of the ipympl backend:
https://github.com/NMRPy/nmrpy
As part of this there are a number of widgets (interactive matplotlib graphs) for phasing and peak picking of the NMR spectra. Some of these widgets print output to the cell output area (below the ipympl widget) after user interaction, using simple `print()` function calls in the code. In some cases further user input is required for which I have made use of an `ipywidgets.FloatText()` which is then also displayed in the output area.
**As of version 0.5.0 this cell output area is no longer displayed.** The widget interaction with the ipympl graphs still works but the text output from `print()` calls and the ipywidgets output are not there.
- Is this intentional or a regression?
- If intentional, is there a way to get the output area back, or an alternative where to direct text output after interaction with a graph (or instantiate an `ipywidgets` widget) so that it is displayed to the user?
This functionality is crucial to my application and currently I am thus stuck with using ipympl<0.5.0. BTW this is using notebook, not jupyterlab.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Vergleiche ipympl 0.5.0 mit einer Version vor 0.5.0 in einem klassischen Jupyter Notebook, indem du die Interaktion mit einem ipympl-Diagramm, print() und ipywidgets.FloatText() reproduzierst. Verfolge, wie die Widget-Ausgabe nach der Interaktion angezeigt wird; abgeschlossen ist die Aufgabe, wenn ausgegebener Text und instanziierte Widgets wieder im Zellausgabebereich erscheinen oder der unterstützte Ersatz dokumentiert ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- jupyter-notebook
- Bereich
- frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100