New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data Explorer: Set initial settings via code #4377
Comments
|
We can continue to iterate on this and involve UX designers, but I was imagining one workflow would be like this.
The user would probably need some guidance around how to do steps 3 and 4. Aside from documentation, this could be addressed by having the button open a pop-up for contextual guidance and actions rather than simply copying the settings at that point. |
This issue hasn't had any activity on it in the last 90 days. Unfortunately we don't get around to dealing with every issue that is opened. Instead of leaving issues open we're seeking to be transparent by closing issues that aren't being prioritized. If no other activity happens on this issue in one week, it will be closed.
Thank you! |
Is your feature request related to a problem? Please describe.
A common problem with notebooks is reproducibility. I'm assuming the nteract notebook UI persists the Data Explorer settings in the output's metadata, and my application does that too, allowing the same view to be restored later. However, this actually decreases reproducibility of the execution, because running the notebook again (such as when you share it with someone else) will not produce the same view of the Data Explorer because the output metadata was lost.
Describe the solution you'd like
One solution would be to allow the Data Explorer settings to be pre-configured in code which will be applied to the output's metadata during the execution. I explored some options, and it turns out this is already possible with the following snippet.
That snippet successfully pre-hydrates the output's metadata. The full metadata is more comprehensive, but this example works since the rest of the options apparently take default values.
I think this is a promising way to increase reproducibility, but it comes with some problems.
view: "foo"
or metrics/dimensions that are not in the dataset.The first two issues could be addressed by introducing a UI control to the Data Explorer that allows exporting the current settings. For example, it could pop out a textarea with the settings encoded as JSON (or just copies the value to the clipboard). The user could past the JSON into a code cell and trivially decode it into a dict to be passed to the
display
function.The text was updated successfully, but these errors were encountered: