-
Notifications
You must be signed in to change notification settings - Fork 331
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
code-tools
+ echo
does not behave consistently on ipynb/qmd
#11682
Comments
Additionally, |
I believe this correct In short,
Probably this should be more clearly documented. Some more details: Let me try to show what it is supposed to do and which logic applies to know if this is worth adding it.
However, this default logic has some exception
Based on all this, I don't see any issue in the example you gave. This is just expected behavior for In summary, regarding code-tools:
source: true
toogle: true
caption: true however, for ipynb, it is code-tools:
source: false
toggle: true
caption: true and for both You can reproduce the ipynb behavior by setting ---
title: "Reproducible Quarto Document"
engine: jupyter
code-tools:
source: false
toggle: true
execute:
echo: false
---
```{python}
print("Hello, world!")
```
```python
print("Goodbye, world!")
``` This will give you the result with no code-tools menu. We could think of making improvement to this (like adding ipynb source as base64 encoded document to download when clicking on the button) but this is a different issue. |
Then |
It seems I made an error in my short explanation at the top, so I edited it.
|
Let me try to sum up differently current situation. The Code Tools menu is shown only when
When Special behavior happens in the following:
Maybe I missed something, but your different examples all fall into one of this case. I don't say design could not be improved but it currently behave correctly to me. The main difference between .qmd and .ipynb is that ipynb source is considered to be included as text in the View Source modal that opens when you click the button. |
I see. I now understand the behaviour but it's not intuitive at all as In my opinion and as a proposed enhancement:
Note that this change/enhancement of the "source" would be added the same way as "other links", "other formats". |
There is a weird unexpected interaction which changes depending on how the options are called on a Jupyter Notebook.
Assuming:
Converting it as a Jupyter Notebook via:
Originally posted by @mcanouil in #11661 (reply in thread)
The text was updated successfully, but these errors were encountered: