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

Print out code and outputs rather than json format of ipynb files #3007

Open
mogwai opened this issue Jun 25, 2024 · 2 comments
Open

Print out code and outputs rather than json format of ipynb files #3007

mogwai opened this issue Jun 25, 2024 · 2 comments
Labels
feature-request New feature or request

Comments

@mogwai
Copy link

mogwai commented Jun 25, 2024

sublimehq/Packages#1741

This could be more useful to quickly inspect what's in a file vs the json version perhaps by default this could be disabled

@mogwai mogwai added the feature-request New feature or request label Jun 25, 2024
@keith-hall
Copy link
Collaborator

Thanks for the suggestion. I feel this isn't something that would fit in the bat codebase directly, but would be solved by #2191 if someone wrote a pre-processor (or if there already exists such a thing) for it

@mogwai
Copy link
Author

mogwai commented Oct 19, 2024

Solution for now:

jupyter nbconvert --to python notebook.ipynb --stdout | grep -v -e "^get_ipython"  | batcat

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

No branches or pull requests

2 participants