We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using pyvis 0.3.2
# script.py from pyvis.network import Network nt = Network( cdn_resources="local", ) nt.show('network.html', notebook=False)
The output draws content from
niko@niko-ubuntu:~/tmp/pyvis_tests$ cat network.html | grep 'href=\"http\|src=\"http' -C 5 <html> <head> <meta charset="utf-8"> <script src="lib/bindings/utils.js"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/vis-network/9.1.2/dist/dist/vis-network.min.css" integrity_no="sha512-WgxfT5LWjfszlPHXRmBWHkV2eceiWTOBvrKCNbdgDYTHrT2AeLCGbF4sZlZw3UMN3WtL0tGUoIAKsu8mllg/XA==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <script src="https://cdnjs.cloudflare.com/ajax/libs/vis-network/9.1.2/dist/vis-network.min.js" integrity_no="sha512-LnvoEWDFrqGHlHmDD2101OrLcbsfkrzoSpvtSQtxK3RMnRV0eOkhhBN2dXHKRrUU8p2DGRTk35n4O8nWSVe1mQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> <center> <h1></h1> </center> <!-- <link rel="stylesheet" href="../node_modules/vis/dist/vis.min.css" type="text/css" /> <script type="text/javascript" src="../node_modules/vis/dist/vis.js"> </script>--> <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity_no="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous" /> <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity_no="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf" crossorigin="anonymous" ></script>
Note that it pyvis actually copies these files under lib:
lib
niko@niko-ubuntu:~/tmp/pyvis_tests$ python -m seedir pyvis_tests/ ├─network.html ├─script.py └─lib/ ├─vis-9.1.2/ │ ├─vis-network.min.js │ └─vis-network.css ├─bindings/ │ └─utils.js └─tom-select/ ├─tom-select.complete.min.js └─tom-select.css
The files are:
The text was updated successfully, but these errors were encountered:
Related PR: #201
Sorry, something went wrong.
Currently the output does not work without an internet connection. The browser debug tools show this:
No branches or pull requests
Using pyvis 0.3.2
Steps to reproduce:
The output draws content from
Notes
Note that it pyvis actually copies these files under
lib
:The files are:
The text was updated successfully, but these errors were encountered: