-
Notifications
You must be signed in to change notification settings - Fork 407
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
Export python code #75
Comments
I’ve actually been thinking a lot about that since i’ve developed similar stuff in the past. I would love to add a dependency on matplotlib so I can export static images but it would require a lot of recoding of the plotly/dash stuff. Maybe the code snippet is the best way to code so then the users can worry about converting it into a static image. Great suggestion! |
@aschonfeld: bamboolib is a good example for this request take a look on section Getting the Code |
@reza bamboolib has definitely been on my radar (wish it was free :)). I've been discussing how to attack the code export functionality and I think I've got a good idea on how to handle it (at least on the grid side of things. I'll essentially maintain a history of all the operations your running (if the manipulate the data in some way) and you'll be able to view that running log at any time also with the filtering & sorting information at the end. As for the charts it shouldn't be much harder since isn't really a running history of operations you can perform on the data, just what the inputs allow. The tough part will be figuring out how to get the popup to play nice with plotly/dash. But its certainly doable and I'll put it at the top of my list. Thanks for the feedback! |
For popup in plotly I found https://community.plot.ly/t/any-way-to-create-an-instructions-popout/18828 |
@reza1615 just wanted to give you an update on where I'm at with the code export: https://youtu.be/z95sMY25Ab8 |
@aschonfeld: That is great. |
I found https://community.plot.ly/t/syntax-highlighted-code-component-type/31035 for sintax highlighting for lable. may we can find some thing for textbox |
Not sure why you would want to edit it when you have the "Copy" button right in the bottom of the popup. You can click that and paste it anywhere you want and make edits from there. Also, don't worry about the dash components. I think I've found a way around it to using the same component for the grid and the charts :) |
* #75, added code snippet functionality to the following: * main grid, histogram, correlations, column building & charts * exposed CLI loaders through the following functions dtale.show_csv, dtale.show_json, dtale.show_arctic * build in such a way that it is easy for custom loaders to be exposed as well * #82, pinned `future` package to be >= 0.14.0
* #75, added code snippet functionality to the following: * main grid, histogram, correlations, column building & charts * exposed CLI loaders through the following functions dtale.show_csv, dtale.show_json, dtale.show_arctic * build in such a way that it is easy for custom loaders to be exposed as well * #82, pinned `future` package to be >= 0.14.0
@reza1615 I have just relased version 1.7.11 which includes code snippets. Here's the links you'll find:
If you're fine with what you see in this release I'll close this issue. Thanks |
Thanks. I tested that is great. |
@reza1615 just released 1.7.12 with syntax highlighting. Closing |
Is it possible to add a feature to export the panda's code or mathplotlib's code for explored charts or filtering or groupby?
It can be like a popup text box in which the user can simply copy and paste the code to reuse it in the Jupyter notebook.
The text was updated successfully, but these errors were encountered: