dotnet / interactive

.NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.
MIT License
2.8k stars 375 forks source link

text/html MIME type does not display in VSCode web editors #3395

Open johnW-ret opened 6 months ago

johnW-ret commented 6 months ago

Describe the bug

Types registered with text/html MIME type do not display in vscode.dev or github.dev. This can be observed by running one of the HousingML sample notebooks in a Codespace in github.dev

I only got the sample working when I removed the version numbers for the referenced packages.

.NET Interactive Version:

Version: 1.0.462701+bc12bb7969ef019c58c96139668e4a9f2cf1ac2e

Library version: 1.0.0-beta.23627.1+bc12bb7969ef019c58c96139668e4a9f2cf1ac2e

Build date: 2023-12-29T21:18:39.3071645Z

Environments

Edge, Edge Mobile, Visual Studio Code for Web via github.dev and vscode.dev, Codespaces and VS Code dev tunnel.

Screenshots

You can observe that space is allocated or displaying the content, but none of it is displayed. This does not change when formatting only static images as output. Python Jupyter notebooks in the web do not have this problem. Screenshot_20231229-153008

jonsequitur commented 6 months ago

This issue is broader than that. Polyglot Notebooks depends on having a kernel running, and the github.dev experience uses only in-browser resources.

johnW-ret commented 6 months ago

My original post was poorly worded, and I needed to perform more tests. The issue is not as broad as I thought it was:

So the issue is not with github.dev at all actually, but code tunnel and vscode.dev. However, the same issue does not occur with Python Jupyter Notebooks via vscode.dev, so I'm not sure in which repo this issue belongs.


In the meantime, I'm glad I can create a new .NET Codespace, install the Polyglot Notebooks extension, and immediately get coding, or I can probably create a .devcontainer for a repo with a polyglot notebook, but I'd like to be able to leave my computer on and use my own compute for free via code tunnel.