Skip to content

Commit 5d70749

Browse files
hbcarlosfcollonval
andauthored
Backport PR #158 on branch 0.2.x (Fix metadata issue) (#159)
* backport pr #158 * Fix GitHub CI --------- Co-authored-by: Frédéric Collonval <[email protected]>
1 parent 347cbf0 commit 5d70749

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/check-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
matrix:
1616
group: [check_release, link_check]
1717
python-version: ["3.9"]
18-
node-version: ["14.x"]
18+
node-version: ["18.x"]
1919
steps:
2020
- name: Checkout
2121
uses: actions/checkout@v2

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050

5151
- name: Install dependencies
5252
run: |
53-
mamba install python=${{ matrix.python-version }} pip nodejs=16 yarn
53+
mamba install python=${{ matrix.python-version }} pip nodejs=18 yarn=1
5454
pip install .[test]
5555
5656
- name: Build JavaScript assets

jupyter_ydoc/ydoc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ def get(self):
163163

164164
return dict(
165165
cells=cells,
166-
metadata=meta["metadata"],
167-
nbformat=int(meta["nbformat"]),
168-
nbformat_minor=int(meta["nbformat_minor"]),
166+
metadata=meta.get("metadata", {}),
167+
nbformat=int(meta.get("nbformat", 0)),
168+
nbformat_minor=int(meta.get("nbformat_minor", 0)),
169169
)
170170

171171
def set(self, value):

0 commit comments

Comments
 (0)