microsoft / vscode-jupyter

VS Code Jupyter extension
https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter
MIT License
1.29k stars 290 forks source link

Expression rendering in tables #14589

Closed raffaeleterribile closed 11 months ago

raffaeleterribile commented 2 years ago

Type: Bug

Mathematical expressions inside tables used in Jupyter Notebook are rendered as plain code and not as mathematical expression.

Extension version: 1.0.9 VS Code version: Code 1.70.2 (e4503b30fc78200f846c62cf8091b76ff5547662, 2022-08-16T05:35:13.448Z) OS version: Windows_NT x64 10.0.19044 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 x 2808)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|15.89GB (2.21GB free)| |Process Argv|--crash-reporter-id 17ff7d16-c441-488a-8e6f-19b7c60fc654| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vstes627:30244334 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscoreces:30445986 pythondataviewer:30285071 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 pythonvs932:30410667 wslgetstarted:30449410 cppdebug:30492333 pylanb8912:30545647 vsclangdf:30486550 c4g48928:30535728 d7fjc500:30543455 dsvsc012cf:30540253 azure-dev_surveyone:30548225 ```
raffaeleterribile commented 2 years ago

I'll add an example. I've used this Jupyter notebook:

https://github.com/microsoft/QuantumKatas/blob/9bc84cfd357c7607a39212878b918750bcf4b8ce//tutorials/Qubit/Qubit.ipynb

Viewing this notebook on Github or Binder I see this:

image

Inside Visual Studio Code I see this:

image

I've tried to put the same expressions outside the table and they rendered correctly, so it's a problem with the expressions inside tables.

mjbvz commented 11 months ago

Duplicate of https://github.com/microsoft/vscode/issues/185619