-
Notifications
You must be signed in to change notification settings - Fork 4
Visualisation example #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
tinaok
wants to merge
13
commits into
xdggs:main
Choose a base branch
from
tinaok:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 9 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
e787c36
Create readme.md
tinaok e35b223
Add files via upload
tinaok a84c109
updating data sources
tinaok e0dca7d
add comments
tinaok 62dc573
add jb to repo
annefou ddfb011
add logo
annefou e2a878e
Merge pull request #1 from annefou/jb
tinaok c21777d
add spherical harmonics plot
tinaok afcc7f7
add pre-commit hook
annefou 1e19396
Update .pre-commit-config.yaml
annefou 52f97cb
Update .pre-commit-config.yaml
annefou 1468dd1
remove xdggs install from github
annefou f525879
add xdggs to environment.yml
annefou File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,34 @@ | ||
| name: gfts | ||
| channels: | ||
| - conda-forge | ||
| - defaults | ||
| dependencies: | ||
| - python=3.11 | ||
| - jupyter-book | ||
| - matplotlib | ||
| - numpy | ||
| - ghp-import | ||
| - xarray | ||
| - cftime | ||
| - netcdf4 | ||
| - h5netcdf | ||
| - cartopy | ||
| - holoviews | ||
| - hvplot | ||
| - geoviews | ||
| - cartopy | ||
| - geopandas | ||
| - movingpandas | ||
| - pooch | ||
| - fsspec | ||
| - s3fs | ||
| - git | ||
| - jupyterlab-git | ||
| - "nodejs>=16,<17" | ||
| - jupyterlab-myst>=2.0.0 | ||
| - pip: | ||
| - wget | ||
| - sphinx-exercise | ||
| - jupytext | ||
| - nbgitpuller | ||
| - mystmd |
This file contains hidden or 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,40 @@ | ||
| name: deploy | ||
|
|
||
| on: | ||
| # Trigger the workflow on push to main branch and tutorial path | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - visualisation/** | ||
|
|
||
| # This job installs dependencies, build the jupyter notebook, and pushes it to `render`, a new `branch` | ||
| jobs: | ||
| build: | ||
| name: Setup | ||
| runs-on: "ubuntu-latest" | ||
| defaults: | ||
| run: | ||
| shell: bash -l {0} | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - name: Set up conda and dependencies | ||
| uses: mamba-org/setup-micromamba@v1 | ||
| with: | ||
| environment-file: .binder/environment.yml | ||
| environment-name: xdggs | ||
| condarc: | | ||
| channels: | ||
| - conda-forge | ||
| # Build the book | ||
| - name: Build the jupyter book | ||
| run: | | ||
| jupyter-book build visualisation | ||
| # Deploy the book's HTML to gh-pages branch | ||
| - name: Deploy to GitHub Pages | ||
| uses: peaceiris/actions-gh-pages@v3 | ||
| with: | ||
| publish_branch: gh-pages | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
| publish_dir: visualisation/_build/html | ||
| force_orphan: true |
This file contains hidden or 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,42 @@ | ||
| # pre-commit is a tool to perform a predefined set of tasks manually and/or | ||
| # automatically before git commits are made. | ||
| # | ||
| # Config reference: https://pre-commit.com/#pre-commit-configyaml---top-level | ||
| # | ||
| # Common tasks | ||
| # | ||
| # - Run on all files: pre-commit run --all-files | ||
| # - Register git hooks: pre-commit install --install-hooks | ||
| # | ||
|
|
||
| ci: | ||
| # pre-commit.ci will open PRs updating our hooks once a month | ||
| autoupdate_schedule: monthly | ||
|
|
||
| exclude: "(.*/)?secrets/.*|code_of_conduct.md|rule_of_participation.md" | ||
|
|
||
| repos: | ||
| # autoformat and lint Python code | ||
| - repo: https://github.com/astral-sh/ruff-pre-commit | ||
| rev: v0.1.14 | ||
| hooks: | ||
| - id: ruff | ||
| types_or: [python, jupyter] | ||
| args: ["--fix", "--show-fixes"] | ||
| - id: ruff-format | ||
| types_or: [python, jupyter] | ||
|
|
||
| # Autoformat: markdown, yaml, javascript (see the file .prettierignore) | ||
| - repo: https://github.com/pre-commit/mirrors-prettier | ||
| rev: v4.0.0-alpha.8 | ||
annefou marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| hooks: | ||
| - id: prettier | ||
|
|
||
| # Autoformat and linting, misc. details | ||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| rev: v4.5.0 | ||
| hooks: | ||
| - id: end-of-file-fixer | ||
| - id: requirements-txt-fixer | ||
| - id: check-case-conflict | ||
| - id: check-executables-have-shebangs | ||
This file contains hidden or 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,52 @@ | ||
| ####################################################################################### | ||
| # A default configuration that will be loaded for all jupyter books | ||
| # See the documentation for help and more options: | ||
| # https://jupyterbook.org/customize/config.html | ||
|
|
||
| ####################################################################################### | ||
| # Book settings | ||
| title: xdggs examples | ||
| author: Pangeo # The author of the book | ||
| copyright: "2024" # Copyright year to be placed in the footer | ||
| logo: "./images/xdggs.png" # A path to the book logo | ||
| only_build_toc_files: true | ||
|
|
||
| # Force re-execution of notebooks on each build. | ||
| # See https://jupyterbook.org/content/execute.html | ||
| execute: | ||
| execute_notebooks: false | ||
| timeout: 1000 | ||
|
|
||
| # Add a launch button on a specific binder instance | ||
| launch_buttons: | ||
| notebook_interface: "jupyterlab" | ||
| binderhub_url: "https://notebooks.gesis.org/binder/" # The URL for your BinderHub (e.g., https://mybinder.org) | ||
| jupyterhub_url: "http://pangeo-eosc.vm.fedcloud.eu/jupyterhub/" # The URL for your JupyterHub. (e.g., https://datahub.berkeley.edu) | ||
|
|
||
| # Define the name of the latex output file for PDF builds | ||
| latex: | ||
| latex_documents: | ||
| targetname: xdggs.tex | ||
|
|
||
| # Add a bibtex file so that we can create citations | ||
| bibtex_bibfiles: | ||
| - references.bib | ||
|
|
||
| # Information about where the book exists on the web | ||
| repository: | ||
| url: https://github.com/tinaok/xdggs_examples # Online location of your book | ||
| path_to_book: docs # Optional path to your book, relative to the repository root | ||
| branch: main # Which branch of the repository should be used when creating links (optional) | ||
|
|
||
| # Add GitHub buttons to your book | ||
| # See https://jupyterbook.org/customize/config.html#add-a-link-to-your-repository | ||
| html: | ||
| use_issues_button: true | ||
| use_repository_button: true | ||
|
|
||
| sphinx: | ||
| config: | ||
| html_js_files: | ||
| - https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js | ||
| extra_extensions: | ||
| - sphinx_exercise |
This file contains hidden or 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,2 @@ | ||
| format: jb-book | ||
| root: xdggs-explore-demo |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.