diff --git a/.gitignore b/.gitignore index 3849400..a5dad17 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ _build conf.py package-lock.json package.json +Untitled.ipynb diff --git a/_config.yml b/_config.yml deleted file mode 100644 index ef4ee62..0000000 --- a/_config.yml +++ /dev/null @@ -1,98 +0,0 @@ -############################################################################# -# JupyterBook settings -# See: https://jupyterbook.org/en/stable/customize/config.html - -title : Data Science in Global Change Ecology # Left navbar -author : Carl Boettiger -copyright : "2024" # Goes in the footer -logo : hex.png # Above title, left navbar -exclude_patterns: [_build, Thumbs.db, .DS_Store, "**.ipynb_checkpoints"] - -# Render content from stored notebooks -execute: - execute_notebooks: 'off' - -# Let's build everything - it takes a bit longer but lets us easily preview -# files that are in draft/progress on the live site, without exposing them -# in the TOC/nav tools. -only_build_toc_files: false - -# Enable some myst extensions beyond the default. -parse: - myst_enable_extensions: - - amsmath - - dollarmath - - html_admonition - - html_image - - linkify - - colon_fence - - substitution - - tasklist - - jupyter_sphinx - -# Add links to GitHub repo -# For more info: https://jupyterbook.org/en/stable/basics/repository.html -repository: - url : https://github.com/espm-157/website - branch : main - -## Jupyter-Book, not recognized by current theme -html: - use_repository_button : true - use_issues_button : true - favicon : "_static/favicon.png" - announcement : "" # A banner announcement at the top of the site. - extra_footer: | -
- - -## shibuya sphinx theme, configure here -sphinx: - config: - project: "ESPM-157" - html_show_copyright: false - html_show_sphinx: false - html_theme: "shibuya" - templates_path: ["_templates"] - html_theme_options: { - "slack_url": "https://espm-157.slack.com", - "github_url": "https://github.com/espm-157-f24", - "nav_links": [ - { - "title": "Home", - "url": "index" - }, - ] - } - html_context: { - "source_type": "github", - "source_user": "espm-157", - "source_repo": "website", - "source_version": "main", # Optional - "source_docs_path": "/" - } - - - - - -# Uncomment this later if bibliographic references are desired -# See: https://jupyterbook.org/en/stable/tutorials/references.html - -# bibtex_bibfiles: -# - references.bib -# -# sphinx: -# config: -# bibtex_reference_style: author_year diff --git a/_toc.yml b/_toc.yml deleted file mode 100644 index 82ab7ef..0000000 --- a/_toc.yml +++ /dev/null @@ -1,21 +0,0 @@ -format: jb-book -root: index -parts: -- caption: Overview - chapters: - - file: overview/syllabus - - file: overview/schedule -- caption: Textbook - chapters: - - file: reading/00-preface - - file: reading/01-github-jupyter - - file: reading/02-visualization-basics - - file: reading/03-data-access - - file: reading/04-transform - - file: reading/05-ibis-1 - - file: reading/06-ibis-2 - - file: reading/06-ibis-3 - - file: reading/07-ibis-4 - - - diff --git a/berkeley-logo-transp.png b/berkeley-logo-transp.png deleted file mode 100644 index 0b4c279..0000000 Binary files a/berkeley-logo-transp.png and /dev/null differ diff --git a/berkeley-logo-white.png b/berkeley-logo-white.png deleted file mode 100644 index 0528908..0000000 Binary files a/berkeley-logo-white.png and /dev/null differ diff --git a/book-requirements.txt b/book-requirements.txt deleted file mode 100644 index 202c4fd..0000000 --- a/book-requirements.txt +++ /dev/null @@ -1,10 +0,0 @@ -# Packages for Jupyter book. These are normal packages, but we put them in a -# separate section so they are easier to manually sync between the main -# environment.yml file and a pip requirements file that _only_ builds -# jupyterbook sites using Github Actions. -jupyter-book==0.15.0 -jupyter-sphinx==0.4.0 -markdown-it-py==2.2.0 -markupsafe==2.1.2 -myst-nb==0.17.1 -shibuya diff --git a/myst.yml b/myst.yml index 3f08027..0299e7f 100644 --- a/myst.yml +++ b/myst.yml @@ -32,6 +32,7 @@ project: - file: reading/07-ibis-4.ipynb - file: reading/spatial-1.ipynb - file: reading/spatial-2.ipynb + - file: reading/spatial-3.ipynb site: template: book-theme diff --git a/reading/spatial-2.ipynb b/reading/spatial-2.ipynb index 75219c9..91c16c9 100644 --- a/reading/spatial-2.ipynb +++ b/reading/spatial-2.ipynb @@ -32,7 +32,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "271c0afa00394d1bb38c3edcc9e0058e", + "model_id": "9eee4222e406459a9ee6f14f9327a784", "version_major": 2, "version_minor": 0 }, @@ -83,7 +83,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "8cf9736d206b4108830e3093f07427df", + "model_id": "237d8fb05c3f4794b2f823cb555a927d", "version_major": 2, "version_minor": 1 }, @@ -103,9 +103,27 @@ "m" ] }, + { + "cell_type": "markdown", + "id": "70663683-ca61-4150-beb0-14c4f1890f84", + "metadata": {}, + "source": [ + "Because our map is an interactive javascript applet, putting `m` at the end of the a cell will allow it to display inline in Jupyter, but not in 'static' documentation such as the course website or a GitHub rendering of the notebook. To share our map, we can export it to an HTML file. This allows any web browser to view and interact with the map without having to install `jupyter` or `python`. " + ] + }, { "cell_type": "code", "execution_count": 5, + "id": "f7bbe798-585f-4ec7-9099-a836b25b6be2", + "metadata": {}, + "outputs": [], + "source": [ + "m.to_html(\"../data/nh1.html\", overwrite=True)" + ] + }, + { + "cell_type": "code", + "execution_count": 6, "id": "8a433141-72bd-4b8c-8e46-ed4c86aeb12d", "metadata": { "scrolled": true @@ -118,7 +136,7 @@ "