ipython / ipython/ipynb

Unable to import notebooks with names that start with a number

Offen
#59 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Jupyter Notebook
Sterne
258
Forks
71
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Create a notebook with a number as the first character example **1-initial-process.ipynb**

Create a second notebook and import the first notebook.

```python
import ipynb.fs.full.1-initial-process as initial_proc
```

You will get a syntax error that highlights the 'dot' before the filename with the text **"SyntaxError: invalid syntax"**

When the first notebook is renamed to **initial-process.ipynb**, the import call works.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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