Skip to content

Commit bbbafe5

Browse files
feat: extend parameter file loader to parse toml in addition to yaml
Signed-off-by: Nguyen Huy Hoang <181364121+huyhoang171106@users.noreply.github.com>
1 parent e4e4ddd commit bbbafe5

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

papermill/iorw.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
import warnings
66
from contextlib import contextmanager
77

8+
try:
9+
import tomllib
10+
except ModuleNotFoundError:
11+
try:
12+
import tomli as tomllib
13+
except ModuleNotFoundError:
14+
tomllib = None
15+
816
import entrypoints
917
import nbformat
1018
import requests

0 commit comments

Comments
 (0)