-
Notifications
You must be signed in to change notification settings - Fork 134
Update to DEA Notebooks Template #1386
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
base: develop
Are you sure you want to change the base?
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
My personal opinion is the dev container should stay, as it gives an easy way for a user to use their local vs code to spin this up if they don't want to use codespaces. |
@jennaguffogg ultimately the |
DEA_notebooks_template.ipynb
Outdated
"- <b>Personal computer:</b> This notebook loads DEA data using <code>odc-stac</code>. Data streams across the internet, so can be run locally after installing the required <a href=\"https://pypi.org/project/dea-tools/\" style=\"color:inherit;\">DEA Tools</a> Python package, e.g. <code>pip install dea-tools[notebooks]</code>.\n", | ||
"\n", | ||
"\n", | ||
"- <b>Run this notebook online:</b> Click on the badge below to launch a GitHub Codespaces instance to run the notebook from your browser. See this [wiki page]() for more information.\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has the wiki page link been left blank for now on purpose, or should this link to a docs page for codespaces?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a placeholder for now
DEA_notebooks_template.ipynb
Outdated
"If you would like to report an issue with this notebook, you can file one on [GitHub](https://github.com/GeoscienceAustralia/dea-notebooks).\n", | ||
"\n", | ||
"**Last modified:** September 2021\n", | ||
"**Last modified:** September 2025\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there's an 'updated' date at the top of the notebook, should this be the same? Or, if they serve the same purpose, do both need to be in the notebook template?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've removed it.
DEA_notebooks_template.ipynb
Outdated
], | ||
"outputs": [], | ||
"source": [ | ||
"print(datacube.__version__)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because this notebook doesn't import datacube, this throws an error. Does this need to be included in the template?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deleted!
Added a cell at the bottom that prints the date a noteboook was |
* Additional notebook updates * Remove table layout, use horizontal logo * Fix formatting * Minor formatting * Update header
Proposed changes
Proposing a new DEA-Notebooks template to support the switch to loading DEA data with
odc-stac
. Includes a refresh of the overall aesthetic, as well as updates to the cells at the top of the notebook including replacing theConnect to the Datacube
withConnect to DEA's Explorer STAC API
andConfigure AWS access
. I'm uncertain of the best approach to configuring AWS access, whether it should beconfigure_rio
orconfigure_s3_access
by default.I've also removed the
Getting Started
cell as I thought it wasn't really adding anything helpful.This draft PR also includes the set-up for CodeSpaces to work (clicking on the badge in the notebook header will lauch an instance). The
.devcontainer
andrequirements.txt
folder/file does not need to survive this PR, but including it here for now so we can test and decide on the way forward.Closes issues (optional)
odc-stac
adoption and improved user guidance #1371Checklist
If this is a notebook, then have you:
Load packages
General advice
)jupyterlab_code_formatter
tool can be used to format code cells to a consistent style: select each code cell, then clickEdit
and then one of theApply X Formatter
options (YAPF
orBlack
are recommended).Notebook currently compatible with
line below the notebook title to reflect the environments the notebook is compatible with