Skip to content

Commit 7b51568

Browse files
committed
Always convert to newer nbformat version
1 parent ca336e9 commit 7b51568

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/app.jsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,7 +1718,10 @@ class App extends Component {
17181718
response.statusText
17191719
)
17201720
this.setState({
1721-
jupyterDocument: await response.json(),
1721+
jupyterDocument: {
1722+
...(await response.json()),
1723+
nbformat_minor: 5
1724+
},
17221725
jupyterFilename: node.filename,
17231726
ipynbuploadname: node.name || 'Dummy title',
17241727
jupyterId: node.id,
@@ -1869,7 +1872,7 @@ class App extends Component {
18691872
metadata: {
18701873
orig_nbformat: 4
18711874
},
1872-
nbformat_minor: 4,
1875+
nbformat_minor: 5,
18731876
nbformat: 4,
18741877
cells: []
18751878
},

0 commit comments

Comments
 (0)