我经常绘制不想离开我的个人计算机的数据。我注意到,当使用 mpld3 在 jupyter 笔记本中生成绘图时,https://mpld3.github.io被访问。我认为它只是提取绘图脚本,但是使用 mpld3 时是否有任何绘图数据从我的计算机发送出去的风险?有没有可以使用 mpld3 的“离线模式”?
最佳答案
尝试将 local=True
传递给 mpld3.enable_notebook()
或 mpld3.display()
。正如常见问题解答所述:
Setting this to True will copy the mpld3 and d3 JavaScript libraries to the notebook directory, and will use the appropriate path within IPython (/files/*.js) to load the libraries
关于python - mpld3 的数据安全,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43618047/