Skip to content

fix(notebook): remove trailing comma in DiCE_getting_started_feasible.ipynb JSON#467

Open
MukundaKatta wants to merge 1 commit intointerpretml:mainfrom
MukundaKatta:codex/fix-dice-feasible-notebook-trailing-comma
Open

fix(notebook): remove trailing comma in DiCE_getting_started_feasible.ipynb JSON#467
MukundaKatta wants to merge 1 commit intointerpretml:mainfrom
MukundaKatta:codex/fix-dice-feasible-notebook-trailing-comma

Conversation

@MukundaKatta
Copy link
Copy Markdown

Summary

`docs/source/notebooks/DiCE_getting_started_feasible.ipynb` ended with an invalid trailing comma:

```
"nbformat": 4,
"nbformat_minor": 4,
}
```

Strict JSON doesn't allow that, so GitHub's notebook preview and nbformat-based tools refused to render the notebook. Removed the trailing comma after `"nbformat_minor": 4`. `json.load` now parses the file.

Closes #439

Testing

`python3 -c "import json; json.load(open('docs/source/notebooks/DiCE_getting_started_feasible.ipynb'))"` now succeeds.

….ipynb JSON

The notebook's last two lines ('"nbformat_minor": 4,\n}\n') contained a
trailing comma, which makes the file invalid JSON. GitHub's notebook
preview and nbformat-based renderers refused to render it. Python's
json.load now succeeds after the fix.

Closes interpretml#439
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

DiCE_getting_started_feasible notebook typo resulting in failure to render

1 participant