Skip to content

Commit

Permalink
deploy: 9fd81b9
Browse files Browse the repository at this point in the history
  • Loading branch information
Taylor-96 committed Jun 2, 2024
1 parent f1c4d40 commit a499091
Show file tree
Hide file tree
Showing 76 changed files with 1,336 additions and 1,481 deletions.
55 changes: 28 additions & 27 deletions README.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@

<script data-cfasync="false">
document.documentElement.dataset.mode = localStorage.getItem("mode") || "";
document.documentElement.dataset.theme = localStorage.getItem("theme") || "light";
document.documentElement.dataset.theme = localStorage.getItem("theme") || "";
</script>

<!-- Loaded before other Sphinx assets -->
<link href="_static/styles/theme.css?digest=8d27b9dea8ad943066ae" rel="stylesheet" />
<link href="_static/styles/bootstrap.css?digest=8d27b9dea8ad943066ae" rel="stylesheet" />
<link href="_static/styles/pydata-sphinx-theme.css?digest=8d27b9dea8ad943066ae" rel="stylesheet" />
<link href="_static/styles/theme.css?digest=3ee479438cf8b5e0d341" rel="stylesheet" />
<link href="_static/styles/bootstrap.css?digest=3ee479438cf8b5e0d341" rel="stylesheet" />
<link href="_static/styles/pydata-sphinx-theme.css?digest=3ee479438cf8b5e0d341" rel="stylesheet" />


<link href="_static/vendor/fontawesome/6.5.1/css/all.min.css?digest=8d27b9dea8ad943066ae" rel="stylesheet" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="_static/vendor/fontawesome/6.5.1/webfonts/fa-solid-900.woff2" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="_static/vendor/fontawesome/6.5.1/webfonts/fa-brands-400.woff2" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="_static/vendor/fontawesome/6.5.1/webfonts/fa-regular-400.woff2" />
<link href="_static/vendor/fontawesome/6.5.2/css/all.min.css?digest=3ee479438cf8b5e0d341" rel="stylesheet" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="_static/vendor/fontawesome/6.5.2/webfonts/fa-solid-900.woff2" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="_static/vendor/fontawesome/6.5.2/webfonts/fa-brands-400.woff2" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="_static/vendor/fontawesome/6.5.2/webfonts/fa-regular-400.woff2" />

<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" href="_static/styles/sphinx-book-theme.css?digest=14f4ca6b54d191a8c7657f6c759bf11a5fb86285" type="text/css" />
Expand All @@ -38,9 +38,9 @@
<link rel="stylesheet" type="text/css" href="_static/design-style.4045f2051d55cab465a707391d5b2007.min.css" />

<!-- Pre-loaded scripts that we'll load fully later -->
<link rel="preload" as="script" href="_static/scripts/bootstrap.js?digest=8d27b9dea8ad943066ae" />
<link rel="preload" as="script" href="_static/scripts/pydata-sphinx-theme.js?digest=8d27b9dea8ad943066ae" />
<script src="_static/vendor/fontawesome/6.5.1/js/all.min.js?digest=8d27b9dea8ad943066ae"></script>
<link rel="preload" as="script" href="_static/scripts/bootstrap.js?digest=3ee479438cf8b5e0d341" />
<link rel="preload" as="script" href="_static/scripts/pydata-sphinx-theme.js?digest=3ee479438cf8b5e0d341" />
<script src="_static/vendor/fontawesome/6.5.2/js/all.min.js?digest=3ee479438cf8b5e0d341"></script>

<script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
<script src="_static/jquery.js"></script>
Expand Down Expand Up @@ -75,27 +75,23 @@



<a id="pst-skip-link" class="skip-link" href="#main-content">Skip to main content</a>
<div id="pst-skip-link" class="skip-link d-print-none"><a href="#main-content">Skip to main content</a></div>

<div id="pst-scroll-pixel-helper"></div>

<button type="button" class="btn rounded-pill" id="pst-back-to-top">
<i class="fa-solid fa-arrow-up"></i>
Back to top
</button>
<i class="fa-solid fa-arrow-up"></i>Back to top</button>


<input type="checkbox"
class="sidebar-toggle"
name="__primary"
id="__primary"/>
<label class="overlay overlay-primary" for="__primary"></label>
id="pst-primary-sidebar-checkbox"/>
<label class="overlay overlay-primary" for="pst-primary-sidebar-checkbox"></label>

<input type="checkbox"
class="sidebar-toggle"
name="__secondary"
id="__secondary"/>
<label class="overlay overlay-secondary" for="__secondary"></label>
id="pst-secondary-sidebar-checkbox"/>
<label class="overlay overlay-secondary" for="pst-secondary-sidebar-checkbox"></label>

<div class="search-button__wrapper">
<div class="search-button__overlay"></div>
Expand All @@ -117,8 +113,13 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form></div>
</div>

<div class="pst-async-banner-revealer d-none">
<aside id="bd-header-version-warning" class="d-none d-print-none" aria-label="Version warning"></aside>
</div>


<header class="bd-header navbar navbar-expand-lg bd-navbar">
<header class="bd-header navbar navbar-expand-lg bd-navbar d-print-none">
</header>


Expand Down Expand Up @@ -197,7 +198,7 @@

</div>

<main id="main-content" class="bd-main">
<main id="main-content" class="bd-main" role="main">



Expand All @@ -206,7 +207,7 @@
<div class="bd-content">
<div class="bd-article-container">

<div class="bd-header-article">
<div class="bd-header-article d-print-none">
<div class="header-article-items header-article__inner">

<div class="header-article-items__start">
Expand Down Expand Up @@ -388,7 +389,7 @@ <h2>Acknowledgements<a class="headerlink" href="#acknowledgements" title="Permal



<footer class="prev-next-footer">
<footer class="prev-next-footer d-print-none">

<div class="prev-next-area">
</div>
Expand Down Expand Up @@ -457,8 +458,8 @@ <h2>Acknowledgements<a class="headerlink" href="#acknowledgements" title="Permal
</div>

<!-- Scripts loaded after <body> so the DOM is not blocked -->
<script src="_static/scripts/bootstrap.js?digest=8d27b9dea8ad943066ae"></script>
<script src="_static/scripts/pydata-sphinx-theme.js?digest=8d27b9dea8ad943066ae"></script>
<script src="_static/scripts/bootstrap.js?digest=3ee479438cf8b5e0d341"></script>
<script src="_static/scripts/pydata-sphinx-theme.js?digest=3ee479438cf8b5e0d341"></script>

<footer class="bd-footer">
</footer>
Expand Down
Binary file modified _images/bands.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions _sources/tutorial/tools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
OSSCAR Jupyter widgets, JupyterLab extensions and other tools
##############################################################

We have developed custom Jupyter widgets related to computational chemistry
and physics. For instance, we developed a interactive periodic table.
Besides, we also developed JupyterLab extensions, which can help development.
We have developed custom Jupyter widgets which facilitate a number of tasks typically carried out in computational chemistry and physics. All of these widgets are compatible with JupyterLab >= 4.x (Notebook 7) and were revised in 2024 to make use of the anywidget framework.
In addition to interactive widgets, we have also developed JupyterLab extensions, which can improve a user's development experience.

######################
Jupyter widgets
Expand Down
75 changes: 50 additions & 25 deletions _sources/widgets/widget_bandsplot.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@
" This widget facilitates the plotting of electronic bandstructure and density of states from supplied json files.\n",
"</p>\n",
"\n",
"```{image} ./images/bands.png\n",
":alt: image bandstructure\n",
":class: bg-primary mb-1\n",
":width: 800px\n",
":height: 500px\n",
":align: center\n",
"```\n",
"\n",
"\n",
"## **Input json files**\n",
Expand All @@ -44,8 +37,8 @@
" The json format for the DOS can be checked in the github repository.\n",
"</p>\n",
"\n",
"<a href=\"https://raw.githubusercontent.com/osscar-org/widget-bandsplot/develop/example/Si_pdos_data.json\">\n",
"https://raw.githubusercontent.com/osscar-org/widget-bandsplot/develop/example/Si_pdos_data.json</a>\n",
"<a href=\"https://github.com/osscar-org/widget-bandsplot/blob/main/example/data/Si_dos.json\">\n",
"https://github.com/osscar-org/widget-bandsplot/blob/main/example/data/Si_dos.json</a>\n",
"\n",
"<p style=\"text-align: justify;font-size:15px\">\n",
" Here, one needs to use the json package to load the json file and pass it to the widget.\n",
Expand Down Expand Up @@ -88,50 +81,82 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"from widget_bandsplot import *\n",
"from widget_bandsplot import BandsPlotWidget\n",
"import json\n",
"from copy import deepcopy"
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 3,
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"with open('Si_bands.json', 'r') as file:\n",
" data1 = json.load(file)\n",
" \n",
"with open('Si_dos.json', 'r') as file:\n",
" data2 = json.load(file)"
"import json\n",
"\n",
"def load_file(filename):\n",
" with open(filename, 'r') as fhandle:\n",
" return json.load(fhandle)\n",
"\n",
"si_bands = load_file(\"./Si_bands.json\")\n",
"si_dos = load_file(\"./Si_dos.json\")\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 4,
"metadata": {
"tags": []
},
"outputs": [],
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "b88eb5973a3f44f1886b173bde431f1d",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"BandsPlotWidget(bands=[{'label': '', 'path': [['GAMMA', 'X'], ['X', 'U'], ['K', 'GAMMA'], ['GAMMA', 'L'], ['L'…"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"w1 = BandsPlotWidget(bands=[data1], dos=data2, plot_fermilevel = True, show_legend = True, energy_range = {\"ymin\": -13.0, \"ymax\": 10.0})\n",
"w1 = BandsPlotWidget(\n",
" bands = [si_bands],\n",
" dos = si_dos,\n",
" energy_range = [-8.0, 8.0],\n",
" format_settings = {\n",
" \"showFermi\": True,\n",
" \"showLegend\": True,\n",
" }\n",
")\n",
"display(w1)"
]
},
{
"cell_type": "code",
"execution_count": null,
"cell_type": "markdown",
"metadata": {},
"outputs": [],
"source": []
"source": [
"```{image} ./images/bands.png\n",
":alt: image bandstructure\n",
":class: bg-primary mb-1\n",
":width: 800px\n",
":height: 500px\n",
":align: center\n",
"```"
]
}
],
"metadata": {
Expand All @@ -150,7 +175,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.12"
"version": "3.10.12"
},
"voila": {
"authors": "Dou Du and Giovanni Pizzi"
Expand Down
2 changes: 1 addition & 1 deletion _static/scripts/bootstrap.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions _static/scripts/bootstrap.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Bootstrap v5.3.2 (https://getbootstrap.com/)
* Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Bootstrap v5.3.3 (https://getbootstrap.com/)
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
2 changes: 1 addition & 1 deletion _static/scripts/bootstrap.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit a499091

Please sign in to comment.