在 Rmd knitted 报告中显示 Plotly express 图在 python 块中

问题描述

基本上当我运行 python 块(在 Rmd 上使用 reticulate)时,.show() 给出一个带有交互式绘图的新浏览器窗口作为输出

我可以将它集成到针织 rmd 中吗?

py_plot = px.choropleth(data_frame = py_plot_df,locations= "iso_alpha",color= "Confirmed",# the value in the variable 'Confirmed' determines the color
                hover_name= "Country",color_continuous_scale="bluyl",#  through all the color palettes,the dear old Viridis is also available in python!
                animation_frame= "Date")
py_plot.show()

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)