Project-MONAI / Project-MONAI/tutorials

Initial import error should go to /dev/null

Offen
#165 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
Jupyter Notebook
Sterne
2.5k
Forks
803
Ø Merge
6 T. 22 Std.
Gemergte PRs (30 T.)
3

Beschreibung

Is your feature request related to a problem? Please describe.
We currently have this structure at the top of our notebooks: !python -c "import matplotlib" || pip install -q matplotlib.

In this fashion, if we fail to import matplotlib, pip install it. However, if the first command fails, an error is printed. This could be solved with: !python -c "import matplotlib" &>/dev/null || pip install -q matplotlib

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Durchsuchen Sie die Notebooks nach dem Setup-Befehl python -c \"import matplotlib\" und prüfen Sie jede passende Zelle. Aktualisieren Sie die Behandlung des anfänglichen Imports so, dass dessen Fehlerausgabe vor der Installation unterdrückt wird, und überprüfen Sie anschließend, dass die betroffenen Notebooks matplotlib weiterhin installieren, wenn der Import nicht verfügbar ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
jupyter-notebook, python
Bereich
documentation
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.