Hello,
If I try from Introspecting figures in Python (plotly.com) the code snippet:
import plotly.graph_objects as go
fig = go.Figure(
data=[go.Scattergeo(
mode=“markers+text”,
lat=[10, 20],
lon=[20, 10],
text=[“Point A”, “Point B”]
)],
layout=dict(height=400, width=400,
margin=dict(l=0,r=0,b=0,t=0),
template=“none”)
)
fig.show()
full_fig = fig.full_figure_for_development()
print(full_fig)
The print portion doesnt work(although I do get the warning “full_figure_for_development is not recommended or necessary for production use in most circumstances.
To suppress this warning, set warn=False”) , but the app itself works with the figure being drawn correctly.
I have tried multiple ways to get the method full_figure_for_development() work, tried to save it as a file and tried other code and tried to run the python file from CMD. The method, after being defined, seems to jam my whole script after that line of code so that nothing works in the line lines afterwards.
Here are my specs:
Python version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Dash version: 2.14.2
Plotly version: 5.18.0
Operating System: Windows 10
Thank you very much beforehand!