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
How to use with Jupytext Markdown notebooks #668
Comments
Hey @basnijholt I think you can sync Python files with notebooks in Jupytext? If so, you could run your Python tools on those files directly If you want to keep them in markdown, I don't think there's a simpler solution, but thanks anyway for your issue! |
We just ran into this for SciPy. Wouldn't it be useful for Jupytext is the best way to keep Jupyter notebooks in version control without making a mess, so it would be nice if Jupytext had broad tooling support. |
Hey @rgommers Looks like there's a few people interested in this. Given this line in the shed readme, I think this might include @Zac-HD I'll take a look, just want to make sure this doesn't accidentally open up a rabbit hole of features to support Reopening for now then - in the meantime, some local script which does "convert to ipynb, run nbqa, convert back" sounds like it should be fine As a side-note, you don't need nbqa to run |
@basnijholt if you have some
|
Thanks a lot @MarcoGorelli! I have tested this on the Adaptive documentation: https://github.com/python-adaptive/adaptive/tree/master/docs/source/tutorial However, it's not doing anything and simply reporting:
When I call it directly:
|
Thanks @basnijholt for trying this out! I've had a look at that notebook, and it looks like it's missing
in I'll see if there's a way around this - perhaps just checking kernelspec->name is enough |
Hey @basnijholt - I've pushed another commit now, to check the kernelspec name as well. Now, from
Note that, to keep |
Should 🤞 be available, as of version |
This is now possible after nbQA-dev/nbQA#745 which solved this issue (nbQA-dev/nbQA#668) I opened a year ago.
This is now possible after nbQA-dev/nbQA#745 which solved this issue (nbQA-dev/nbQA#668) I opened a year ago.
@all-contributors please add @basnijholt and @rgommers for ideas |
I've put up a pull request to add @basnijholt! 🎉 |
looks like these need doing separately @all-contributors please add @rgommers for ideas |
I've put up a pull request to add @rgommers! 🎉 |
* Add NBQA for notebook and docs linting This is now possible after nbQA-dev/nbQA#745 which solved this issue (nbQA-dev/nbQA#668) I opened a year ago. * Run pre-commit filters on all files * Lint * bump * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * update os * Fix all nbqa issues --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
We keep our notebooks in Markdown format using Jupytext. Is there an easy way to get nbQA to work with these files?
I can probably write a pre-commit hook that
But I wonder whether there is a simpler solution.
The text was updated successfully, but these errors were encountered: