Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

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

Closed
jtyberg opened this issue Aug 22, 2016 · 5 comments
Closed

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

jtyberg opened this issue Aug 22, 2016 · 5 comments

Comments

@jtyberg
Copy link

jtyberg commented Aug 22, 2016

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
Copy link
Collaborator

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
Copy link
Author

jtyberg commented Aug 22, 2016

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

peller commented Aug 24, 2016

should this issue be moved to the declarativewidgets project?

@peller
Copy link
Collaborator

peller commented Aug 26, 2016

@lbustelo

@peller
Copy link
Collaborator

peller commented Sep 26, 2016

moved to jupyter/declarativewidgets#518

@peller peller closed this as completed Sep 26, 2016
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

3 participants