Closed nickeubank closed 3 years ago
Thanks for the bug. This seems to work for me. Might be a timing issue with when we append output though.
Saw it with quite a few students in my class doing this as an exercise yesterday, so pretty confident it isn't just me, even if it is intermittent. :/
Oh actually this works for me in insiders. In stable VS code I repro the bug you have. This looks like it's been fixed in the last month.
Wonderful, thanks!
New stable VS code version is coming out today? Tomorrow maybe.
Environment data
Expected behaviour
Altair chart to appear in interactive window
Actual behaviour
Doesn't appear. If you switch the Mimetype to text/plain then back to text/HTML, it does appear. Works fine in notebook.
Steps to reproduce:
Run this code:
interactive_plot_failure_mwe.py.zip
Logs
Output for
Jupyter
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toJupyter
)``` Started kernel Python 3.9.6 64-bit ('base': conda) Info 2021-09-01 14:23:48: Initial setup for vscode-interactive:Interactive-1.interactive starting ... Info 2021-09-01 14:23:48: UpdateWorkingDirectoryAndPath Info 2021-09-01 14:23:48: Kernel switching to busy Info 2021-09-01 14:23:48: Kernel switching to idle Info 2021-09-01 14:23:48: Kernel switching to busy Info 2021-09-01 14:23:48: Kernel switching to idle Info 2021-09-01 14:23:48: Initial setup complete for vscode-interactive:Interactive-1.interactive Info 2021-09-01 14:23:48: Finished connecting 271e106e-2485-4f22-b0ea-3ffbe3081910 Info 2021-09-01 14:23:48: [32mWidget Coordinator sent IPyWidgets_kernelOptions Info 2021-09-01 14:23:48: [32mPosting message to Notebook UI Info 2021-09-01 14:23:48: Registering commtarget jupyter.widget Info 2021-09-01 14:23:48: IPyWidgetMessageDispatcher.initialize Info 2021-09-01 14:23:48: [32mWidget Coordinator sent IPyWidgets_mirror_execute Info 2021-09-01 14:23:48: [32mPosting message to Notebook UI Info 2021-09-01 14:23:48: IPyWidgetScriptSource.initialize Info 2021-09-01 14:23:48: IPyWidgetMessageDispatcher.initialize Info 2021-09-01 14:23:48: [32mWidget Coordinator sent IPyWidgets_msg Info 2021-09-01 14:23:48: [32mPosting message to Notebook UI Info 2021-09-01 14:23:48: [32mWidget Coordinator sent IPyWidgets_msg Info 2021-09-01 14:23:48: [32mPosting message to Notebook UI Info 2021-09-01 14:23:48: Kernel switching to busy Info 2021-09-01 14:23:48: Notebook Session status vscode-interactive:Interactive-1.interactive # Busy Info 2021-09-01 14:23:48: [32mWidget Coordinator received IPyWidgets_registerCommTarget Info 2021-09-01 14:23:48: [32mWidget Coordinator received IPyWidgets_registerCommTarget Info 2021-09-01 14:23:48: [32mWidget Coordinator received IPyWidgets_msg_received Info 2021-09-01 14:23:48: IPyWidgetMessageDispatcher.initialize Info 2021-09-01 14:23:48: IPyWidgetMessageDispatcher.initialize Info 2021-09-01 14:23:48: [32mWidget Coordinator sent IPyWidgets_msg Info 2021-09-01 14:23:48: [32mPosting message to Notebook UI Info 2021-09-01 14:23:48: Kernel switching to idle Info 2021-09-01 14:23:48: Notebook Session status vscode-interactive:Interactive-1.interactive # Idle Info 2021-09-01 14:23:48: [32mWidget Coordinator sent IPyWidgets_msg Info 2021-09-01 14:23:48: [32mPosting message to Notebook UI Info 2021-09-01 14:23:48: UpdateWorkingDirectoryAndPath Info 2021-09-01 14:23:48: [32mWidget Coordinator received IPyWidgets_msg_received Info 2021-09-01 14:23:48: [32mWidget Coordinator received IPyWidgets_iopub_msg_handled Info 2021-09-01 14:23:48: [32mWidget Coordinator received IPyWidgets_msg_received Info 2021-09-01 14:23:48: [32mWidget Coordinator received IPyWidgets_iopub_msg_handled Info 2021-09-01 14:23:48: [32mWidget Coordinator received IPyWidgets_msg_received Info 2021-09-01 14:23:48: [32mWidget Coordinator received IPyWidgets_iopub_msg_handled Info 2021-09-01 14:23:48: [32mWidget Coordinator received IPyWidgets_msg_received Info 2021-09-01 14:23:48: changeDirectoryIfPossible Info 2021-09-01 14:23:48: [32mWidget Coordinator sent IPyWidgets_mirror_execute Info 2021-09-01 14:23:48: [32mPosting message to Notebook UI Info 2021-09-01 14:23:48: [32mWidget Coordinator received IPyWidgets_msg_received Info 2021-09-01 14:23:48: [32mWidget Coordinator sent IPyWidgets_msg Info 2021-09-01 14:23:48: [32mPosting message to Notebook UI Info 2021-09-01 14:23:48: Kernel switching to busy Info 2021-09-01 14:23:48: Notebook Session status vscode-interactive:Interactive-1.interactive # Busy Info 2021-09-01 14:23:48: [32mWidget Coordinator sent IPyWidgets_msg Info 2021-09-01 14:23:48: [32mPosting message to Notebook UI Info 2021-09-01 14:23:48: [32mWidget Coordinator sent IPyWidgets_msg Info 2021-09-01 14:23:48: [32mPosting message to Notebook UI Info 2021-09-01 14:23:48: [32mWidget Coordinator received IPyWidgets_msg_received Info 2021-09-01 14:23:48: [32mWidget Coordinator received IPyWidgets_iopub_msg_handled Info 2021-09-01 14:23:48: [32mWidget Coordinator received IPyWidgets_msg_received Info 2021-09-01 14:23:48: [32mWidget Coordinator received IPyWidgets_iopub_msg_handled Info 2021-09-01 14:23:48: [32mWidget Coordinator sent IPyWidgets_msg Info 2021-09-01 14:23:48: [32mPosting message to Notebook UI Info 2021-09-01 14:23:48: Kernel switching to idle Info 2021-09-01 14:23:48: Notebook Session status vscode-interactive:Interactive-1.interactive # Idle Info 2021-09-01 14:23:48: [32mWidget Coordinator sent IPyWidgets_msg Info 2021-09-01 14:23:48: [32mPosting message to Notebook UI Info 2021-09-01 14:23:48: [32mWidget Coordinator sent IPyWidgets_mirror_execute Info 2021-09-01 14:23:48: [32mPosting message to Notebook UI Info 2021-09-01 14:23:48: [32mWidget Coordinator received IPyWidgets_msg_received Info 2021-09-01 14:23:48: [32mWidget Coordinator received IPyWidgets_iopub_msg_handled Info 2021-09-01 14:23:48: [32mWidget Coordinator received IPyWidgets_msg_received Info 2021-09-01 14:23:48: [32mWidget Coordinator received IPyWidgets_iopub_msg_handled Info 2021-09-01 14:23:48: [32mWidget Coordinator received IPyWidgets_msg_received Info 2021-09-01 14:23:48: [32mWidget Coordinator received IPyWidgets_msg_received Info 2021-09-01 14:23:48: [32mWidget Coordinator sent IPyWidgets_msg Info 2021-09-01 14:23:48: [32mPosting message to Notebook UI Info 2021-09-01 14:23:48: [32mWidget Coordinator sent IPyWidgets_msg Info 2021-09-01 14:23:48: [32mPosting message to Notebook UI Info 2021-09-01 14:23:48: Kernel switching to busy Info 2021-09-01 14:23:48: Notebook Session status vscode-interactive:Interactive-1.interactive # Busy Info 2021-09-01 14:23:48: [32mWidget Coordinator sent IPyWidgets_msg Info 2021-09-01 14:23:48: [32mPosting message to Notebook UI Info 2021-09-01 14:23:48: Kernel switching to idle Info 2021-09-01 14:23:48: Notebook Session status vscode-interactive:Interactive-1.interactive # Idle Info 2021-09-01 14:23:48: [32mWidget Coordinator sent IPyWidgets_msg Info 2021-09-01 14:23:48: [32mPosting message to Notebook UI Info 2021-09-01 14:23:48: [32mWidget Coordinator received IPyWidgets_msg_received Info 2021-09-01 14:23:48: [32mWidget Coordinator received IPyWidgets_iopub_msg_handled Info 2021-09-01 14:23:48: [32mWidget Coordinator received IPyWidgets_msg_received Info 2021-09-01 14:23:48: [32mWidget Coordinator received IPyWidgets_iopub_msg_handled Info 2021-09-01 14:23:48: [32mWidget Coordinator received IPyWidgets_msg_received Info 2021-09-01 14:23:48: [32mWidget Coordinator received IPyWidgets_iopub_msg_handled Info 2021-09-01 14:23:48: Waiting for idle on (kernel): 426902a7-37f1-452e-a388-d2cce5767320 -> idle Info 2021-09-01 14:23:48: Finished waiting for idle on (kernel): 426902a7-37f1-452e-a388-d2cce5767320 -> idle Info 2021-09-01 14:23:49: [32mWidget Coordinator received IPyWidgets_msg_received Info 2021-09-01 14:23:49: UpdateWorkingDirectoryAndPath Info 2021-09-01 14:23:49: [32mWidget Coordinator sent IPyWidgets_mirror_execute Info 2021-09-01 14:23:49: [32mPosting message to Notebook UI Info 2021-09-01 14:23:49: [32mWidget Coordinator sent IPyWidgets_msg Info 2021-09-01 14:23:49: [32mPosting message to Notebook UI Info 2021-09-01 14:23:49: [32mWidget Coordinator sent IPyWidgets_msg Info 2021-09-01 14:23:49: [32mPosting message to Notebook UI Info 2021-09-01 14:23:49: Kernel switching to busy Info 2021-09-01 14:23:49: [32mWidget Coordinator sent IPyWidgets_msg Info 2021-09-01 14:23:49: [32mPosting message to Notebook UI Info 2021-09-01 14:23:49: Notebook Session status vscode-interactive:Interactive-1.interactive # Busy Info 2021-09-01 14:23:49: Kernel switching to idle Info 2021-09-01 14:23:49: Notebook Session status vscode-interactive:Interactive-1.interactive # Idle Info 2021-09-01 14:23:49: [32mWidget Coordinator sent IPyWidgets_msg Info 2021-09-01 14:23:49: [32mPosting message to Notebook UI Info 2021-09-01 14:23:49: Adding hash for 1 = 9e88cef7578d with 23 lines Info 2021-09-01 14:23:49: [32mWidget Coordinator sent IPyWidgets_mirror_execute Info 2021-09-01 14:23:49: [32mPosting message to Notebook UI Info 2021-09-01 14:23:49: [32mWidget Coordinator received IPyWidgets_msg_received Info 2021-09-01 14:23:49: [32mWidget Coordinator sent IPyWidgets_msg Info 2021-09-01 14:23:49: [32mPosting message to Notebook UI Info 2021-09-01 14:23:49: [32mWidget Coordinator sent IPyWidgets_msg Info 2021-09-01 14:23:49: [32mPosting message to Notebook UI Info 2021-09-01 14:23:49: Kernel switching to busy Info 2021-09-01 14:23:49: Notebook Session status vscode-interactive:Interactive-1.interactive # Busy Info 2021-09-01 14:23:49: [32mWidget Coordinator received IPyWidgets_msg_received Info 2021-09-01 14:23:49: [32mWidget Coordinator received IPyWidgets_iopub_msg_handled Info 2021-09-01 14:23:49: [32mWidget Coordinator received IPyWidgets_msg_received Info 2021-09-01 14:23:49: [32mWidget Coordinator received IPyWidgets_iopub_msg_handled Info 2021-09-01 14:23:49: [32mWidget Coordinator received IPyWidgets_msg_received Info 2021-09-01 14:23:49: [32mWidget Coordinator received IPyWidgets_iopub_msg_handled Info 2021-09-01 14:23:49: [32mWidget Coordinator received IPyWidgets_msg_received Info 2021-09-01 14:23:49: [32mWidget Coordinator received IPyWidgets_msg_received Info 2021-09-01 14:23:49: [32mWidget Coordinator received IPyWidgets_msg_received Info 2021-09-01 14:23:49: [32mWidget Coordinator received IPyWidgets_iopub_msg_handled Info 2021-09-01 14:23:49: [32mWidget Coordinator received IPyWidgets_msg_received Info 2021-09-01 14:23:49: [32mWidget Coordinator received IPyWidgets_iopub_msg_handled Info 2021-09-01 14:23:51: [32mWidget Coordinator sent IPyWidgets_msg Info 2021-09-01 14:23:51: [32mPosting message to Notebook UI Info 2021-09-01 14:23:51: [32mWidget Coordinator sent IPyWidgets_msg Info 2021-09-01 14:23:51: [32mPosting message to Notebook UI Info 2021-09-01 14:23:51: Kernel switching to idle Info 2021-09-01 14:23:51: Notebook Session status vscode-interactive:Interactive-1.interactive # Idle Info 2021-09-01 14:23:51: [32mWidget Coordinator sent IPyWidgets_msg Info 2021-09-01 14:23:51: [32mPosting message to Notebook UI Info 2021-09-01 14:23:51: Finished execution for 3caab3e6-7062-4834-b3df-0802006862f3 Info 2021-09-01 14:23:52: [32mWidget Coordinator received IPyWidgets_msg_received Info 2021-09-01 14:23:52: [32mWidget Coordinator received IPyWidgets_iopub_msg_handled Info 2021-09-01 14:23:52: [32mWidget Coordinator received IPyWidgets_msg_received Info 2021-09-01 14:23:52: [32mWidget Coordinator received IPyWidgets_iopub_msg_handled Info 2021-09-01 14:23:52: [32mWidget Coordinator received IPyWidgets_msg_received ```