Replies: 1 comment 1 reply
-
This would be related to #4946, though %%html cell magics do not natively support this functionality. I know this isn't an ideal solution (& likely you are already aware of this option), however thought I'd mention it either way: # Cell 1
var = 'A variable' # Cell 2
from IPython.display import display, HTML
display(HTML(f'<h1 style="color:white"> The result is {var} and it\'s fantastic </h1>')) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I think it's a great feature if
vscode-jupyter
has the possibility of the connection between jupyter kernel's variables and%%html
cells.It would be great if you can write pure HTML code (maybe adding some CSS for styling) and put the python kernel variables inside it right away.
Also, you can set a variable from
HTML
code cell.It helps to create a simple dashboard inside jupyter ipynb files.
something like this : 👇 🎯
Get variable's data from kernel environment
Set data into kernel's variables from
HTML
Beta Was this translation helpful? Give feedback.
All reactions