-
Notifications
You must be signed in to change notification settings - Fork 327
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
Support more IPython.display
output (like JSON)
#10938
Comments
Could you upgrade to the latest stable version of Quarto (or possibly the latest pre-release)? |
Sure. I updated everything and the issue remains:
|
I believe the rendering is done through the JSON extension made available in Jupyter Lab
Maybe this can be leveraged in quarto 🤔 |
I just realised this extends more generally to all |
Sorry, you're completely right. Here's an example of
|
Why would you assume the output would be highlighted? |
I'm using |
Use FYI: |
This is the intermediate markdown. Not really sure what to make of it. It seems to be lexing correctly?
|
As I said, we don't have specific support for Highlighting of code source output goes through a specific Markdown syntax, that will be converted to the right output syntax based on to format. Right now, As the docs for So you can either opt-out all Quarto highlighting and theme, and try to make a custom format using Pygments. Or you need to adapt your output to how quarto works. If you want to produce highlighted source from Jupyter cells for Quarto, just write some raw Markdown. ---
title: Test
format: html
keep-md: true
---
```{python}
#| echo: false
from IPython.display import Markdown
Markdown(r"""
```{.python}
x = 3
y = 'bar'
```""")
```
I hope this clarifies. |
Yes I understand that this isn't implemented, I guess I would like this to be treated as a feature request to implement some of these It's helpful to know that both |
Yes I think it makes sense to support better some of the display class. However, I don't think we could support all - Or maybe this is just a matter of adaptation in the style to be sure that all inline styling set by Pygments works - anyhow, this is a specific issue. I'll rename this issue to encompass more display support |
IPython.display.JSON
doesn't renderIPython.display
output (like JSON)
Bug description
No response
Steps to reproduce
Expected behavior
JSON()
should result in an interactive JSON widgetActual behavior
Prints:
Your environment
No response
Quarto check output
The text was updated successfully, but these errors were encountered: