migrated to bokeh

This commit is contained in:
2025-03-27 22:22:35 +01:00
parent 3e24987f05
commit e6a841e09a
3 changed files with 66 additions and 46 deletions

View File

@ -1,9 +1,13 @@
<head>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<link href=”https://cdn.pydata.org/bokeh/release/bokeh-3.7.1.min.css" rel=”stylesheet” type=”text/css”>
<link href=”https://cdn.pydata.org/bokeh/release/bokeh-widgets-3.7.1.min.css" rel=”stylesheet” type=”text/css”>
</head>
<body>
<div class="center">
<h1>Isotopes</h1>
<table class="table w-auto table-responsive-sm table-striped table-hover table-bordered">
<caption>
Table downloaded from <a href="https://easyspin.org/documentation/isotopetable.html">easyspin.org</a>
@ -29,17 +33,26 @@
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
<div>
<img src="data:image/png;base64, {{ figure }}" alt="somealt" />
</div>
{{ div| safe }}
<div>
<script src="https://cdn.bokeh.org/bokeh/release/bokeh-3.7.1.min.js"></script>
<script src="https://cdn.bokeh.org/bokeh/release/bokeh-widgets-3.7.1.min.js"></script>
<script src="https://cdn.bokeh.org/bokeh/release/bokeh-tables-3.7.1.min.js"></script>
<script src="https://cdn.bokeh.org/bokeh/release/bokeh-api-3.7.1.min.js"></script>
<script src="https://cdn.bokeh.org/bokeh/release/bokeh-mathjax-3.7.1.min.js"></script>
{{ script| safe }}
</div>
<a href="{% url 'home' %}">Go Back</a>
<a href="{% url 'home' %}">Go Back</a>
</div>
</body>
<style>
.center {
margin: auto;
@ -55,6 +68,8 @@
text-align: left;
}
.table-striped {--bs-table-striped-bg: rgba(213, 217, 255, 0.7);}
.table-striped {
--bs-table-striped-bg: rgba(213, 217, 255, 0.7);
}
</style>