Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Add option to inject query code into new code cell #518

Open
peller opened this issue Sep 26, 2016 · 1 comment
Open

Add option to inject query code into new code cell #518

peller opened this issue Sep 26, 2016 · 1 comment

Comments

@peller
Copy link
Collaborator

peller commented Sep 26, 2016

moved from jupyter-incubator/declarativewidgets_explorer#65

@jtyberg commented on Aug 22
Using the explorer widget to explore a dataframe is great, but users probably want to DO something with the data that results from the query that the widget executes.

One approach to allow them to do this may be to have the widget generate a code cell below the widget and inject the current incarnation of the Python/R/Scala code that is being used to generate the results the widget is displaying. I like this because it gives the user a way to reproduce the results in the notebook. From there they can tweak the code if desired, save it in a variable, etc.
@lbustelo

@lbustelo commented on Aug 22
Interesting, the only downside is that we've tried to keep the widgets unaware of the language of the kernel. We would need to have the kernel side of the urth-core-dataframe be what generates the code.
@jtyberg

@jtyberg commented on Aug 22
That makes sense. Maybe urth-core-dataframe can provide an API that widgets can use to give them the code without executing it? Reminds me of a dry run. Hey, urth-core-dataframe, what would you do if I gave you these inputs?

@peller
Copy link
Collaborator Author

peller commented Sep 26, 2016

@jtyberg @lbustelo

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants