forked from ProjectPythia/ERA5_interactive-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ProjectPythia#14 from NicholasCote/main
DRAFT: Project Pythia 2024 Cook Off: Interactive ERA5 Dashboard [ DO NOT MERGE]
- Loading branch information
Showing
13 changed files
with
9,590 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[settings] | ||
known_third_party = | ||
known_third_party =holoviews,hvplot,panel,xarray |
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,27 @@ | ||
# Use an official Python runtime as a base image | ||
FROM docker.io/mambaorg/micromamba:latest | ||
|
||
USER root | ||
|
||
RUN apt-get update && apt-get install -y git-all | ||
|
||
# Set the working directory in the container to /app | ||
WORKDIR /home/mambauser/app | ||
|
||
# Copy the current directory contents into the container at /usr/src/app | ||
RUN git clone https://github.com/NicholasCote/ERA5_interactive-cookbook-ncote.git | ||
|
||
# Install any needed packages specified in requirements.yml | ||
RUN micromamba env create -f ERA5_interactive-cookbook-ncote/environment.yml | ||
|
||
RUN mv ERA5_interactive-cookbook-ncote/notebooks/04_dashboard.ipynb . | ||
|
||
RUN rm -r ERA5_interactive-cookbook-ncote/ | ||
|
||
# Activate the environment by providing ENV_NAME as an environment variable at runtime | ||
# Make port bokeh application port to the world outside this container | ||
EXPOSE 5006 | ||
|
||
USER mambauser | ||
|
||
CMD ["panel", "serve", "04_dashboard.ipynb", "--allow-websocket-origin=*", "--autoreload"] |
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
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 |
---|---|---|
|
@@ -22,3 +22,6 @@ dependencies: | |
- gcsfs | ||
- cf_xarray | ||
- sphinx-pythia-theme | ||
- hvplot | ||
- spatialpandas | ||
- watchfiles |
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
Oops, something went wrong.