Skip to content

deploy latest book #106

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

Merged
merged 14 commits into from
Jan 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN mamba install --quiet --yes \
'numpy' \
'jinja2' \
'altair_data_server' \
'altair_saver' \
'click' \
'ibis-framework' \
'ghp-import' \
Expand Down
2 changes: 1 addition & 1 deletion build_html.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
chmod -R o+w source/
docker run --rm -v $(pwd):/home/jovyan ubcdsci/py-intro-to-ds:202212191809333bdc71 /bin/bash -c "jupyter-book build source"
docker run --rm -v $(pwd):/home/jovyan ubcdsci/py-intro-to-ds:20230104230634037f38 /bin/bash -c "jupyter-book build source"
3 changes: 0 additions & 3 deletions requirements.txt

This file was deleted.

22 changes: 7 additions & 15 deletions source/_config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
#######################################################################################
# Config file for EOSC211 jupyter book
#######################################################################################
# Book settings

title: DSCΙ 100
title: "Data Science: A First Introduction (Python Edition)"
author: UBC
copyright: "2021" # Copyright year to be placed in the footer
copyright: "2022" # Copyright year to be placed in the footer
logo: "" # A path to the book logo
# Patterns to skip when building the book. Can be glob-style (e.g. "*skip.ipynb")
exclude_patterns: [_build, Thumbs.db, .DS_Store, "*.ipynb_checkpoints"]
Expand All @@ -15,10 +11,10 @@ only_build_toc_files: true
#######################################################################################
# Execution settings
execute:
execute_notebooks: "cache" # Whether to execute notebooks at build time. Must be one of ("auto", "force", "cache", "off")
execute_notebooks: "auto" # Whether to execute notebooks at build time. Must be one of ("auto", "force", "cache", "off")
cache: "" # A path to the jupyter cache that will be used to store execution artifacts. Defaults to `_build/.jupyter_cache/`
# exclude_patterns: [] # A list of patterns to *skip* in execution (e.g. a notebook that takes a really long time)
timeout: 30 # The maximum time (in seconds) each notebook cell is allowed to run.
timeout: 90 # The maximum time (in seconds) each notebook cell is allowed to run.
run_in_temp:
false # If `True`, then a temporary directory will be created and used as the command working directory (cwd),
# otherwise the notebook's parent directory will be the cwd.
Expand Down Expand Up @@ -65,19 +61,15 @@ latex:
latex_engine: pdflatex # one of 'pdflatex', 'xelatex' (recommended for unicode), 'luatex', 'platex', 'uplatex'
use_jupyterbook_latex: true # use sphinx-jupyterbook-latex for pdf builds as default


#######################################################################################

# Launch button settings
launch_buttons:
binderhub_url: ""



repository:
url: https://github.com/phaustin/eosc211_students # The URL to your book's repository
path_to_book: "" # A path to your book's folder, relative to the repository root.
branch: e211_live_main # Which branch of the repository should be used when creating links
url: https://github.com/UBC-DSCI/introduction-to-datascience-python # The URL to your book's repository
path_to_book: "source" # A path to your book's folder, relative to the repository root.
branch: production # Which branch of the repository should be used when creating links

#######################################################################################
# Advanced and power-user settings
Expand Down
17 changes: 11 additions & 6 deletions source/_toc.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
format: jb-book
root: index.md
options:
numbered: true
parts:
- caption: First draft
- caption: Front Matter
chapters:
- file: preface-text.md
- file: foreword-text.md
#- file: foreword.md
- file: acknowledgements.md
- file: acknowledgements-python.md
- file: authors.md
- file: setup.md
- file: editors.md
#- file: setup.md
- caption: Chapters
numbered: 3
chapters:
- file: intro.md
- file: reading.md
- file: wrangling.md
Expand All @@ -20,5 +23,7 @@ parts:
- file: regression2.md
- file: clustering.md
- file: inference.md
- file: references.md
- caption: Appendix
chapters:
- file: appendixA.md
#- file: references.md
25 changes: 25 additions & 0 deletions source/acknowledgements-python.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
jupytext:
cell_metadata_filter: -all
formats: py:percent,md:myst,ipynb
text_representation:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.13.8
kernelspec:
display_name: Python 3 (ipykernel)
language: python
name: python3
---

# Acknowledgments for the Python Edition

We'd like to thank everyone that has contributed to the development of
[*Data Science: A First Introduction (Python Edition)*](https://ubc-dsci.github.io/introduction-to-datascience-python/).
This is an open source Python translation of the original [*Data Science: A First Introduction*](https://datasciencebook.ca);
the original focused on the R programming language. Both of these books are
used to teach DSCI 100, a new introductory data science course
at the University of British Columbia (UBC).

We will finalize this acknowledgements section after the book is complete!
2 changes: 1 addition & 1 deletion source/acknowledgements.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ kernelspec:
name: python3
---

# Acknowledgments -- TBD
# Acknowledgments

We'd like to thank everyone that has contributed to the development of
[*Data Science: A First Introduction*](https://datasciencebook.ca).
Expand Down
4 changes: 1 addition & 3 deletions source/appendixA.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ kernelspec:
name: python3
---

# Appendix

# Downloading files from JupyterHub {#appendixA}
# Downloading files from JupyterHub

This section will help you
save your work from a JupyterHub web-based platform to your own computer.
Expand Down
2 changes: 1 addition & 1 deletion source/authors.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ kernelspec:
name: python3
---

# About the authors -- TBD
# About the authors

**Tiffany Timbers** is an Assistant Professor of Teaching in the Department of
Statistics and Co-Director for the Master of Data Science program (Vancouver
Expand Down
51 changes: 51 additions & 0 deletions source/editors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
jupytext:
cell_metadata_filter: -all
formats: py:percent,md:myst,ipynb
text_representation:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.13.8
kernelspec:
display_name: Python 3 (ipykernel)
language: python
name: python3
---

# About the editors of the Python Edition

**Trevor Campbell** is an Assistant Professor in the Department of Statistics at
the University of British Columbia. His research focuses on automated, scalable
Bayesian inference algorithms, Bayesian nonparametrics, streaming data, and
Bayesian theory. He was previously a postdoctoral associate advised by Tamara
Broderick in the Computer Science and Artificial Intelligence Laboratory
(CSAIL) and Institute for Data, Systems, and Society (IDSS) at MIT, a Ph.D.
candidate under Jonathan How in the Laboratory for Information and Decision
Systems (LIDS) at MIT, and before that he was in the Engineering Science
program at the University of Toronto.

+++

**Lindsey Heagy** is an Assistant Professor in the Department of Earth, Ocean, and Atmospheric
Sciences and director of the Geophysical Inversion Facility at the University of British Columbia.
Her research combines computational methods in numerical simulations, inversions, and machine
learning to answer questions about the subsurface of the Earth. Primary applications include
mineral exploration, carbon sequestration, groundwater and environmental studies. She
completed her BSc at the University of Alberta, her PhD at the University of British Columbia,
and held a Postdoctoral research position at the University of California Berkeley prior to
starting her current position at UBC.

+++

**Joel Ostblom** is an Assistant Professor of Teaching in the Department of
Statistics at the University of British Columbia.
During his PhD, Joel developed a passion for data science and reproducibility
through the development of quantitative image analysis pipelines for studying
stem cell and developmental biology. He has since co-created or lead the
development of several courses and workshops at the University of Toronto and
is now an assistant professor of teaching in the statistics department at the
University of British Columbia. Joel cares deeply about spreading data literacy
and excitement over programmatic data analysis, which is reflected in his
contributions to open source projects and data science learning resources. You
can read more about Joel on his [personal page](https://joelostblom.com/).
Binary file added source/img/altair_syntax.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/img/code-figures.pptx
Binary file not shown.
Binary file added source/img/completion_menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/img/data_frame_slides_cdn/data_frame_slides_cdn.001.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/img/data_frame_slides_cdn/data_frame_slides_cdn.002.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/img/data_frame_slides_cdn/data_frame_slides_cdn.004.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/img/faithful_plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading