Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider adding script to spell check jupyter notebooks #3

Open
sjspielman opened this issue Mar 7, 2024 · 1 comment
Open

Consider adding script to spell check jupyter notebooks #3

sjspielman opened this issue Mar 7, 2024 · 1 comment

Comments

@sjspielman
Copy link
Member

I was also thinking about whether we want a second script for checking jupyter notebooks.

File an issue for it! One idea I had was to export the notebook as markdown using nbconvert and then spell check that? It will be a bit harder to go through the output for fixes as line numbers will be wrong, but should still be doable.

Originally posted by @jashapiro in #2 (comment)

@jashapiro
Copy link
Member

jashapiro commented Apr 15, 2024

Followup idea here: A lighter version may be to just convert the markdown chunks, which can be done with jq:

<file.ipynb jq -r '.cells[] | select(.cell_type == "markdown") | .source | join("")'  > file.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants