Git Product home page Git Product logo

yenchiah / data-science-book-uva-2023 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from multix-amsterdam/data-science-book-uva-2023

0.0 1.0 0.0 193.31 MB

Website for the 2023 edition of the data science course (Bachelor level) at the Informatics Institute, University of Amsterdam

Home Page: https://multix.io/data-science-book-uva-2023/

JavaScript 0.26% Python 1.07% CSS 0.29% TeX 0.02% HTML 23.43% Jupyter Notebook 74.92%

data-science-book-uva-2023's Introduction

data-science-book-uva-2023

This repository hosts the website for the data science course 2023 edition (Bachelor level) at the Informatics Institute, University of Amsterdam. The webite is built using Jupyter Book.

All the course content in this repository is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Below are the steps to update and build this book. First, clone this repository to your local machine. Assume that you already have miniconda installed. Next, install the jupyter-book package:

$ conda create -n jupyterbook
$ conda activate jupyterbook
$ conda install python
$ pip install -U jupyter-book
$ pip install ghp-import
$ jupyter-book --help

Then, clone this repository and build the book:

$ git clone https://github.com/MultiX-Amsterdam/data-science-book-uva
$ cd data-science-book-uva
$ jupyter-book build .

To rebuild the entire book, use the following:

$ jupyter-book build --all .

Once it is done, you can view the book in the html content folder using a web browser. To update the book online in this GitHub repository (in the gh-pages branch), run the following:

$ ghp-import -n -p -f _build/html

The above steps will update the gh-pages branch, which hosts the website. Finally, follow the normal git flow to commit the changes and push the code to the main branch in this repository.

Error Handling

You many encounter an error that looks like the following when building the notebook:

Extension error (sphinx_external_toc.events):
Handler <function add_changed_toctrees at 0x10a031750> for event 'env-get-outdated' threw an exception (exception: 'Document' object has no attribute 'docname')
Traceback (most recent call last):
  File "/opt/homebrew/Caskroom/miniconda/base/envs/jupyterbook/lib/python3.10/site-packages/sphinx/events.py", line 94, in emit
    results.append(listener.handler(self.app, *args))
  File "/opt/homebrew/Caskroom/miniconda/base/envs/jupyterbook/lib/python3.10/site-packages/sphinx_external_toc/events.py", line 138, in add_changed_toctrees
    filenames = site_map.get_changed(previous_map)
  File "/opt/homebrew/Caskroom/miniconda/base/envs/jupyterbook/lib/python3.10/site-packages/sphinx_external_toc/api.py", line 220, in get_changed
    if self.root.docname != previous.root.docname:
AttributeError: 'Document' object has no attribute 'docname'

In this case, just run the following command, and the problem should disappear:

pip install jupyter-cache

data-science-book-uva-2023's People

Contributors

yenchiah avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.