Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将 pyvis 图作为 html 响应传递。有没有办法在不保存的情况下传递 html 文件?
我想到的方法是使用bytesio或者stringio的方法。但它返回一个错误
from io import BytesIO output = BytesIO() ... pyvis_graph.show(output)
错误是
AttributeError: '_io.BytesIO' 对象没有属性 'split'
我该如何解决这个问题..帮帮我