ipython / ipython/ipynb

Unable to import notebooks with names that start with a number

Open
#59 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
258
Forks
71
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.