-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
21 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name = "MetPy Skew-T in PyScript" | ||
description = "Exploration for Doug/Drew-n-Drew/Doug's Daily Dose of Data." | ||
packages = [ | ||
"lzma", | ||
"matplotlib", | ||
"metpy", | ||
"numpy", | ||
"pandas", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,14 +3,11 @@ | |
<title>MetPy Skew-T in PyScript</title> | ||
<meta charset="utf-8"> | ||
|
||
<link rel="stylesheet" href="https://pyscript.net/latest/pyscript.css" /> | ||
<script defer src="https://pyscript.net/latest/pyscript.js"></script> | ||
<link rel="stylesheet" href="https://pyscript.net/releases/2024.11.1/core.css" /> | ||
<script type="module" src="https://pyscript.net/releases/2024.11.1/core.js"></script> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous"> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm" crossorigin="anonymous"></script> | ||
<py-config> | ||
packages = ["lzma", "metpy"] | ||
</py-config> | ||
<py-script src="plot.py"></py-script> | ||
<script type="py" src="plot.py" config="pyscript.toml"></script> | ||
<style> | ||
#skewt img { | ||
display: inline-block; | ||
|
@@ -29,7 +26,7 @@ <h1 class="text-3xl font-bold uppercase text-gray-800">MetPy SkewT PyScript Demo | |
<input id="datetime" class="border rounded" type="datetime-local" value="1999-05-03T12:00"> | ||
</div> | ||
<div> | ||
<button id="update" class="btn btn-primary" type="submit" py-click="get_data_clicked()">Get Data</button> | ||
<button id="update" class="btn btn-primary" type="submit" py-click="get_data_clicked">Get Data</button> | ||
</div> | ||
<div class="form-check form-switch"> | ||
<input class="form-check-input" type="checkbox" role="switch" id="showprofile" py-click="show_profile_clicked()"> | ||
|