nteract / scrapbook

A library for recording and reading data in notebooks.
https://nteract-scrapbook.readthedocs.io
BSD 3-Clause "New" or "Revised" License
281 stars 26 forks source link

Error message: Mime type unknown is not currently supported #69

Closed riyadparvez closed 4 years ago

riyadparvez commented 4 years ago

I am trying the scrapbook tutorial.

import scrapbook as sb

sb.glue("hello", "world")
sb.glue("number", 123)
sb.glue("some_list", [1, 3, 5])
sb.glue("some_dict", {"a": 1, "b": 2})

This is the output I see

Mime type unknown is not currently supported. Mime type unknown is not currently supported. Mime type unknown is not currently supported. Mime type unknown is not currently supported.

riyadparvez commented 4 years ago

Can't reproduce in jupyterlab. I am using VS code jupyter extension to run the notebook. It probably has to do something with VS code jupyter extension.

MSeal commented 4 years ago

Those messages are mostly harmless, VSCode is trying to render the glue'd scraps and doesn't have a renderer for the media type it saves as. Jupyterlab recognizes and skip rendering anything for scraps from scrapbook.

plwalsh commented 1 month ago

@MSeal Has this issue come back? I'm using the latest pre-release version of vscode-jupyter and currently seeing this message under all my sb.glue() calls:

No renderer could be found for mimetype "application/scrapbook.scrap.pandas+json", but one might be available on the Marketplace.

With a button beneath to "Search Marketplace". It's harmless, yes, but quite distracting.

MSeal commented 1 month ago

We've not made changes to scrapbook to this end, you may want to raise it with the vscode-jupyter repo to add a rule to silent render this mimetype as there's not a lot that can be done on the scrapbook side with the approach it takes.