matplotlib / matplotlib/ipympl

Version 0.5.0+ no longer displays output after widget interaction

Ouverte
#233 9 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Langage dominant
Jupyter Notebook
Étoiles
1.7k
Forks
234
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

Comparez ipympl 0.5.0 avec une version antérieure à 0.5.0 dans un Jupyter Notebook classique, en reproduisant l’interaction avec un graphique ipympl, print() et ipywidgets.FloatText(). Suivez la manière dont la sortie du widget est affichée après l’interaction ; le travail est terminé lorsque le texte affiché et les widgets instanciés apparaissent à nouveau dans la zone de sortie de la cellule ou que le remplacement pris en charge est documenté.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
jupyter-notebook
Domaine
frontend
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
42/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.