-
We're using data resource now for sending data from a jupyter kernel to a jupyter frontend. In pandas, you can write: import pandas as pd
# Turn on pandas application/vnd.dataresource+json for use with
# https://github.com/nteract/nteract/issues/1526
pd.options.display.html.table_schema = True and then every time you display a dataframe, it's returning data resource. However, we always either do a We're fine doing something in the metadata section of our own payloads for now, however I'm happy if there's something decent that can go on the actual data resource payload. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
@rgbkrk I think this is a quite a common use case and nice to record. It would make a nice "pattern" for sure (would not yet be part of the formal spec). What's the metadata you are using at the moment? |
Beta Was this translation helpful? Give feedback.
-
We don't have any metadata yet, nteract/improved-spark-viz#6 was the initial discussion for introducing some. |
Beta Was this translation helpful? Give feedback.
-
@rgbkrk any update - any mini-pattern is very welcome. |
Beta Was this translation helpful? Give feedback.
-
We've put a Boolean sampled key on the metadata within our display protocol on the IPython / Jupyter side and didn't set anything on the resource package json. |
Beta Was this translation helpful? Give feedback.
-
@rgbkrk ok - thanks for updating. |
Beta Was this translation helpful? Give feedback.
We've put a Boolean sampled key on the metadata within our display protocol on the IPython / Jupyter side and didn't set anything on the resource package json.