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
Multiple kernels in same file #135
Comments
Currently Jupyter kernels are single-language. One workaround is cell magics which allow embedding other languages within the main parent kernel (e.g. see this, which I'm not sure is still available/maintained: https://notebook.community/OSGeo-live/CesiumWidget/GSOC/notebooks/ipython/examples/Builtin%20Extensions/Octave%20Magic) |
Interesting! it seems to be maintained still, now part of oct2py and documented at https://oct2py.readthedocs.io/en/latest/source/examples.html . I made a quick test, it was easy to get working. Though this is limited to Python+Octave combinations (I also have Julia code to show in another tab). I rather had in mind something like splitting the document in several notebooks (one per language) and gathering the results for the final output. But maybe this doesn't fit with the way quarto works... |
How does R work? Can't you mix Jupyter and Python code chunks in .Rmd files? |
Yes, R can do that through the Thanks to |
It would be nice to support executing several languages in the same file. My use case is that I'm using "panel-tabsets" to show solutions implemented in different languages (e.g. Octave and Python). Currently only one of the tabs can show the result of running of the code.
The text was updated successfully, but these errors were encountered: