AnswerDotAI / AnswerDotAI/nbdev

hooks aren't found in JupyterLab

Offen
#1,352 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
Jupyter Notebook
Sterne
5.3k
Forks
513
Ø Merge
2 T. 30 Min.
Gemergte PRs (30 T.)
8

Beschreibung

Hi. I've got an issue with hooks not being found in JupyterLab. First of all, both my terminal and my JupyterLab instance are running on the same activated conda environment. I've checked to make sure I have the latest version of nbdev (2.3.12).

When I run nbdev hooks from iTerm, they work just fine. You'll see an error but that just proves that the command was indeed called.

![Screen Shot 2023-06-11 at 11 01 49 AM](https://github.com/fastai/nbdev/assets/20686935/a3afc432-ea93-4e49-94be-503209c3626c)

But when I run the same command in the JupyterLab terminal, I get an "command not found" error. However, as you can see, I can still run the `nbdev_export` manually with `./env/bin/nbdev_export`.

![Screen Shot 2023-06-11 at 10 58 40 AM](https://github.com/fastai/nbdev/assets/20686935/dce721ea-e0f9-44a1-9dcf-4ed9bd369956)

This wouldn't be that big of a deal, except I'll be doing a [tutorial](https://cfp.scipy.org/2023/talk/NFWZXD/) at SciPy about creating complex web applications with jupyter widgets + voila + nbdev here in about exactly a month, and I'll need participants to be able to run these commands from the JupyterLab terminal specifically. Any help on this issue would be much appreciated :)

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, den Befehl `nbdev hooks` in der iTerm-Umgebung mit dem JupyterLab-Terminal zu vergleichen, in dem `./env/bin/nbdev_export` weiterhin manuell ausgeführt wird. Verfolge die von jedem Terminal verwendete Umgebung und ermittle, warum der nbdev-Befehl nicht gefunden wird; abgeschlossen ist die Aufgabe, wenn nbdev hooks direkt im JupyterLab-Terminal ausgeführt wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
jupyter-notebook, python
Bereich
cli, devtools
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

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