-
Notifications
You must be signed in to change notification settings - Fork 175
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
plot_point_cloud, and VR.plot can show figures on Jupiter Notebook, but not in standalone Python IDE console #387
Comments
Hi @cyinbox, thanks for the interest! However, we need a little more detail to reproduce. For instance, I just ran this in a Python console session:
and then
and as expected in each case I get a browser window/tab opened with the plot correctly displayed. This is what is expected from All our plotting functions simply construct a |
The figures can be rendered in a browser (Jupyter notebook), but not in a standalone IDE, for example, I use Spyder in Anaconda. |
@cyinbox thanks for the feedback.
Could you edit the title and description of the issue to reflect this? Right now, you refer to the "Python console" which I take to mean a Python session launched directly from the terminal (bash, Windows command prompt, etc.) by typing the command "python". I'm not sure how Spyder works as we only use and reliably support code launched from jupyter notebook/jupyter lab session, or from the terminal as in the paragraph above. Do other |
Thanks! I just edited the title of the bug. Besides Jupyter, development can also use standalone IDE, for example, Anaconda/Spyder, PyCharm, etc. We need to output the figures from these IDEs, so the code in standalone can be developed and deployed as a service. The figures generated from standalone also allows being justified for high-quality/resolution for publishing purpose. Therefore, rending a figure from standalone IDE is important. |
yes, The Spyder/Anaconda3 IDE can produce other regular figures, but not from the giotto-tda plottings. |
Thanks again @cyinbox. However, the issue as it stands is not sufficiently detailed for us to act on it quickly. Could you furnish a step-by-step explanation of how to reproduce your situation, adding it to the issue description as per the issue template? I, for instance, use PyCharm so could quickly test there. |
Could you also report on how to reproduce the examples which do work for you? Bear in mind they should be |
Sure, thanks! I will describe it in detail. It probably just needs small code changes (figure shows). |
I have managed to plot in the Spyder IDE, using a temporary workaround. I did the following:
Maybe this allows you to temporarily visualize the solution. |
Thank you! Yes, that approach works. Or I can export the HTML rendered from plotly in giotto. plotly is for web-based interactive figures. Probably static figures plotting in giotto are also needed as new features. |
@ulupo , do we have a plan on how to address this? |
@wreise, I'm not sure. Let's discuss here. I am curious about the last two statements by @cyinbox:
This is not what I thought –
We just found a way to produce them in vector format, and plotly HTML output can be saved as PNG with a simple click, so we would need more compelling reasons to move forward with integrating another plotting library. This has just been done e.g. in UMAP v0.4, and I just had a private conversation with the author who strongly advised against going in that direction unless it is vital (it was for his project). There is another thing I'd like to share with @cyinbox: perhaps you are wondering why the For consistency, we also had the @cyinbox, we could make a PR with minimal changes along the lines of the paragraph above. What do you think? Would you like me to go ahead and you could test the changes, or would you prefer to open a PR yourself? |
Sorry for being late in replaying I think the better approach is to add new functions in plotting tda diagrams using matplotlib, while keeping the plotly. The plot functions by matplotlib are for static figures, and the existing plotting functions by plotly are for interactive web figures.
|
This has now been implemented in #441 and with the addition of Unfortunately, we do not have the resources to satisfy @cyinbox's wish of having alternative I am closing this issue. |
Describe the bug
To reproduce
Expected behavior
Actual behaviour
Versions
Additional context
The text was updated successfully, but these errors were encountered: