First day, finding my way around. Initial toy project worked surprisingly well.
How does one download the generated .py files from Plotly Could? I can see and cut/paste in the Code tab, but can I get the whole file?
Many dash example use scipy behind the scenes. Can I reference scipy functions directly in prompts, or is it only through Dash components that utilize them?
For example: if I want to do cluster analysis, do I need to do that in pre-processing so the csv data file has the clusters, or can I invoke a Dash component that does it (e.g. dash_bio.Clustergram)?
If code is edited in Plotly Studio, are the edits overwritten if the component is regenerated. If so, all code edits should be performed last? Or is the desired workflow to accomplish all changes via prompts?
We don’t have a way to export the code that Plotly Studio generates. Once the code is exported, Plotly Studio does not currently have a way to import (and work with) the code again. So it would be a one-way process and we’re currently evaluating whether we want to encourage users to take over the code at this point, or whether users should stay in Plotly Studio and receive more powerful editing tools (over time) to eliminate the need for working in an IDE at all. You’re feedback is welcome on this point, so let us know how you envision working with Plotly Studio!
I don’t believe we are bundling scipy or dash_bio today, so asking for specific functions will not work, but we are working on a package manager UI to allow you to add packages explicitly. That way you can add any library you want and the AI prompts can take full advantage of any packages you’ve installed. We’re targeting the General Availability time-frame for that feature (early September) so keep an eye out for it!
Yes, if you make edits to the code and then use the Outline prompt to regenerate the component, your code will be lost. We’ve heard a lot of feedback on this flow and it’s super confusing. Our designers are working on making this more apparent in the UI itself, but the workflow will likely remain the same. My advice is to do as much as you can via the Outline prompt – continue adding detail as needed, and only jump into the code if you’re not getting the results you want, or you want to make a “surgical” change in the component.
My application needs to access files via a url. These may be images files or small data files specific to one record. I can do this in the stand-alone Dash app, but the url is composed at run time based on the selected record. These are typically used in hover data and tool_tips.
How do I accomplish this in Plotly Studio? Should I include a url for each record?