This repository has been archived by the owner on Aug 5, 2023. It is now read-only.
Added support for executing shell commands via magic in code cells. #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hej Gustavo,
Thank you for your nice MongoDB kernel for Jupyter! I like it a lot, especially the visualisation of the JSON values, which are returned from the DB engine.
For a current presentation, I needed support for executing some shell commands in separate code cells next to the Mongo cells. I implemented that quickly by adding a check for if a code cell starts with a line of
%%bash
, similar to Python notebooks. Shell commands are then executed line by line and all of their output (stdout only) are then returned and displayed in a plain string.That is working for my use cases and perhaps you think it may be useful. However, since I never did anything on Jupyter kernels, I do not know if it makes sense what I did and how I did it.
Best,
Helge