Spaces:
Runtime error
Runtime error
allow fullscreen
Browse files- Pipfile.lock +1 -55
- pyvis/pyvis/templates/template.html +14 -3
Pipfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{
|
2 |
"_meta": {
|
3 |
"hash": {
|
4 |
-
"sha256": "
|
5 |
},
|
6 |
"pipfile-spec": 6,
|
7 |
"requires": {
|
@@ -133,14 +133,6 @@
|
|
133 |
],
|
134 |
"version": "==1.4"
|
135 |
},
|
136 |
-
"branca": {
|
137 |
-
"hashes": [
|
138 |
-
"sha256:781ff32bf82979584b0004bd84c254cfccda26bc31b2f7333346d03fb7b97741",
|
139 |
-
"sha256:e6f2f7eba7dd368ceef8f63822b867f5e11d4d3abdd099a787db9ed2b7065ae1"
|
140 |
-
],
|
141 |
-
"markers": "python_version >= '3.5'",
|
142 |
-
"version": "==0.5.0"
|
143 |
-
},
|
144 |
"cachetools": {
|
145 |
"hashes": [
|
146 |
"sha256:6a94c6402995a99c3970cc7e4884bb60b4a8639938157eeed436098bf9831757",
|
@@ -297,14 +289,6 @@
|
|
297 |
],
|
298 |
"version": "==2.15.3"
|
299 |
},
|
300 |
-
"folium": {
|
301 |
-
"hashes": [
|
302 |
-
"sha256:e856ae1de0b322a719b01ceed64ea16f6f011bd28ed22e954a7f7884313da672",
|
303 |
-
"sha256:e91e57d8298f3ccf4cce3c5e065bea6eb17033e3c5432b8a22214009c266b2ab"
|
304 |
-
],
|
305 |
-
"index": "pypi",
|
306 |
-
"version": "==0.12.1.post1"
|
307 |
-
},
|
308 |
"gitdb": {
|
309 |
"hashes": [
|
310 |
"sha256:8033ad4e853066ba6ca92050b9df2f89301b8fc8bf7e9324d412a63f8bf1a8fd",
|
@@ -576,44 +560,6 @@
|
|
576 |
"markers": "python_version < '3.10' and platform_machine != 'aarch64' and platform_machine != 'arm64'",
|
577 |
"version": "==1.22.4"
|
578 |
},
|
579 |
-
"orjson": {
|
580 |
-
"hashes": [
|
581 |
-
"sha256:033dd5f91a8a967a007d3d05cbabec67040d6ff3e159ea17d3f681c3114a0d78",
|
582 |
-
"sha256:26c64da280c9e097081d12047f13b4adba776b19885da5e488c093d4a1461056",
|
583 |
-
"sha256:31367b5d8389373aff1742b66608c4bff318a9015d94981a8c1919e82fe983ca",
|
584 |
-
"sha256:32f384ff9dd555ee21508887b12316d8bd04921b396c876b4d4c87a30a3c8a13",
|
585 |
-
"sha256:349514d69ce089b0e39014345907318ddba8ceca32a187635601c391c36ecdd6",
|
586 |
-
"sha256:37b41c8869347388b1794a1c92c5e981ab764638f62e026252026a650b1b266c",
|
587 |
-
"sha256:3a1e2dfa7ba8adb7511f3560e968ff2a66e7d0cd2f454219a0ab778c3c2e1a5c",
|
588 |
-
"sha256:3ae89fd45bc9c72dcc0a489aa2411f139ee8a32468c387188be21d25f20f83d3",
|
589 |
-
"sha256:4175929ca77338e6a57ff232c0e80443411ac0b489bfff755988ae70e3f62a97",
|
590 |
-
"sha256:42376b0330cbbe5864b480de16a48f4c82aae95dca9cdcf81490e7ca87cc131a",
|
591 |
-
"sha256:43b9a44b42c67adbc02fc86efacf27a374b09971cd58e0cd9739b8a748d19be5",
|
592 |
-
"sha256:454a4d8c81882cbff19eaed90d0a4e42602970c686c8cd34071c8097e3dfdb5c",
|
593 |
-
"sha256:4f657a16f81b0497e5c67b3c151d9eb8c99d2d3a7ab996500e9ae453e8b0e0fe",
|
594 |
-
"sha256:5730e44fc20891cadea7d163a2dad723f95cf81199e1a02dac339a11437a999d",
|
595 |
-
"sha256:6165914b1a209458201bf0a99dcf5f44f58477ba23ac71d7b5e4ca197e174f30",
|
596 |
-
"sha256:696661c6b6e58361aba0b14a2c5977c049f481bc7fe41759a55e86b13b361905",
|
597 |
-
"sha256:6fdef8939f528dd9386c4941e88227a3ccf124c8278ebc7e98533294ae446ef1",
|
598 |
-
"sha256:71c285488c5f767e102a389f9efb11e93e6345247d60043efeffa616a3056945",
|
599 |
-
"sha256:7b03a3f32cd5fcdd8460de690579d1dfa1965bd333b89bd3d202907c7b49ada4",
|
600 |
-
"sha256:7e309db07b13d84bc5eb6ffdfd46f00b2301ce78871809e177f599db3f31fe24",
|
601 |
-
"sha256:8d877467096dc117500a5ed38238085a81518252db3991793a8468ca97445e6c",
|
602 |
-
"sha256:906a33c2fe834cb47daafd09d77405260caa5fa1354219bec5df9ac2b4e909fa",
|
603 |
-
"sha256:a23292d6093748eee3f7ed85dbe6c9abd24d4d399d7044bc323ff39834966d6c",
|
604 |
-
"sha256:aa0919735afbdeada9687347fa7963ca9732c60b1005832ac9d4853a9cb48be9",
|
605 |
-
"sha256:ad0faec8ee89cd50a486804b7d9a97016a1d2074298ceadbc75efc6691030b36",
|
606 |
-
"sha256:b71915140261916e50dbf62dec1b448c159a789e23bc89b3ad1e6516f677036f",
|
607 |
-
"sha256:c4d9d1edd7c92d0b35082ae3a230705206d6beb3c07a8c72ebdd980820598f9c",
|
608 |
-
"sha256:d4a380c164f8c40660ce8f96791695aa74d32a2a45d4038a2a4826d9ec2c61f6",
|
609 |
-
"sha256:f65b7d87534c567136d73f9bcdff46ad5ded2aabe8e89be7ba97395129d48e72",
|
610 |
-
"sha256:f6e691fcf0e03575bef7efd24b331282ad3c1df75855be368e4c3c2cfba6967f",
|
611 |
-
"sha256:f7b628f4dcfc0b726ede7d2024cf79107d54851451e15edeae2f4ee55554f3c6",
|
612 |
-
"sha256:fc7ecc7b38ebf6ac072efa209c5b8d02eb7af393a8a2c812fc01dcb037a86c48"
|
613 |
-
],
|
614 |
-
"index": "pypi",
|
615 |
-
"version": "==3.7.1"
|
616 |
-
},
|
617 |
"packaging": {
|
618 |
"hashes": [
|
619 |
"sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb",
|
|
|
1 |
{
|
2 |
"_meta": {
|
3 |
"hash": {
|
4 |
+
"sha256": "8d375cd7ff96c9f72f57eaeb381ae826cb7df968e453b0958e03ee6d2620e186"
|
5 |
},
|
6 |
"pipfile-spec": 6,
|
7 |
"requires": {
|
|
|
133 |
],
|
134 |
"version": "==1.4"
|
135 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
"cachetools": {
|
137 |
"hashes": [
|
138 |
"sha256:6a94c6402995a99c3970cc7e4884bb60b4a8639938157eeed436098bf9831757",
|
|
|
289 |
],
|
290 |
"version": "==2.15.3"
|
291 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
292 |
"gitdb": {
|
293 |
"hashes": [
|
294 |
"sha256:8033ad4e853066ba6ca92050b9df2f89301b8fc8bf7e9324d412a63f8bf1a8fd",
|
|
|
560 |
"markers": "python_version < '3.10' and platform_machine != 'aarch64' and platform_machine != 'arm64'",
|
561 |
"version": "==1.22.4"
|
562 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
563 |
"packaging": {
|
564 |
"hashes": [
|
565 |
"sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb",
|
pyvis/pyvis/templates/template.html
CHANGED
@@ -3,6 +3,7 @@
|
|
3 |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vis-network@latest/styles/vis-network.css" type="text/css" />
|
4 |
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/vis-network@latest/dist/vis-network.min.js"> </script>
|
5 |
|
|
|
6 |
<link
|
7 |
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css"
|
8 |
rel="stylesheet"
|
@@ -152,7 +153,7 @@
|
|
152 |
{% if select_menu %}
|
153 |
<div class="card-header">
|
154 |
<div class="row no-gutters">
|
155 |
-
<div class="col-
|
156 |
<select
|
157 |
class="form-select"
|
158 |
aria-label="Default select example"
|
@@ -168,8 +169,9 @@
|
|
168 |
#}
|
169 |
</select>
|
170 |
</div>
|
171 |
-
<div class="col-
|
172 |
<button type="button" class="btn btn-primary btn-block" onclick="neighbourhoodHighlight({nodes: []});">Reset Selection</button>
|
|
|
173 |
<div>
|
174 |
</div>
|
175 |
</div>
|
@@ -205,6 +207,16 @@
|
|
205 |
var container;
|
206 |
var options, data;
|
207 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
function neighbourhoodHighlight(params) {
|
209 |
console.log("in nieghborhoodhighlight");
|
210 |
console.log(params);
|
@@ -346,7 +358,6 @@
|
|
346 |
nodeColors = {};
|
347 |
allNodes = nodes.get({ returnType: "Object" });
|
348 |
for (var nodeId in allNodes) {
|
349 |
-
console.log(allNodes[nodeId].color);
|
350 |
nodeColors[nodeId] = allNodes[nodeId].color;
|
351 |
}
|
352 |
|
|
|
3 |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vis-network@latest/styles/vis-network.css" type="text/css" />
|
4 |
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/vis-network@latest/dist/vis-network.min.js"> </script>
|
5 |
|
6 |
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.3/font/bootstrap-icons.css">
|
7 |
<link
|
8 |
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css"
|
9 |
rel="stylesheet"
|
|
|
153 |
{% if select_menu %}
|
154 |
<div class="card-header">
|
155 |
<div class="row no-gutters">
|
156 |
+
<div class="col-9 pb-2">
|
157 |
<select
|
158 |
class="form-select"
|
159 |
aria-label="Default select example"
|
|
|
169 |
#}
|
170 |
</select>
|
171 |
</div>
|
172 |
+
<div class="col-3 pb-2">
|
173 |
<button type="button" class="btn btn-primary btn-block" onclick="neighbourhoodHighlight({nodes: []});">Reset Selection</button>
|
174 |
+
<button type="button" class="btn btn-primary btn-block" onclick="handleClickFullscreenButton()"><i class="bi bi-fullscreen"></i></button>
|
175 |
<div>
|
176 |
</div>
|
177 |
</div>
|
|
|
207 |
var container;
|
208 |
var options, data;
|
209 |
|
210 |
+
function handleClickFullscreenButton() {
|
211 |
+
if (!document.fullscreenElement) {
|
212 |
+
document.body.requestFullscreen();
|
213 |
+
} else {
|
214 |
+
if (document.exitFullscreen) {
|
215 |
+
document.exitFullscreen();
|
216 |
+
}
|
217 |
+
}
|
218 |
+
}
|
219 |
+
|
220 |
function neighbourhoodHighlight(params) {
|
221 |
console.log("in nieghborhoodhighlight");
|
222 |
console.log(params);
|
|
|
358 |
nodeColors = {};
|
359 |
allNodes = nodes.get({ returnType: "Object" });
|
360 |
for (var nodeId in allNodes) {
|
|
|
361 |
nodeColors[nodeId] = allNodes[nodeId].color;
|
362 |
}
|
363 |
|