OEP Python interactive book. This repo contains the RST sources of the book. Such sources will have to be compiled inside a proper runestone instance.
The book is published here.
This repo, as cited before, is just a part of the whole infrastructure. In order to be up and running, it is necessary to follow the following flow:
What follows is a dedicated guide to get up&running easily.
In order to locally test this on your dev machine you have to install runestone and then build the rst files. To do so, one possibility is the following:
libro
.virtualenv -p python3 .venv
source .venv/bin/activate
pip3 install runestone
git clone https://github.com/open-education-polito/python-interactive-book-template.git
cp -r python-interactive-book-template/* .
rm -rf python-interactive-book-template
git clone https//github.com/open-education-polito/python-interactive-book-chapters.git _sources
runestone build
runestone server
like this:
runestone serve
And to see it, browser http://localhost:8000
.
Rememeber that now you have a full working git repo inside the _sources
folder so if you want to work using the git flow you should do it inside
that folder. The build process will not touch such a folder since it is
intended to be just the sources one.
git rebase -i HEAD~n
where n
is the number of commits to squash.
You may use reword
on the top one, fixup
on the other entries.git remote add upstream https://github.com/Open-Education-Polito/oep-python-interactive-book.git
git fetch upstream/master
git rebase -i upstream/master
git rebase --continue
git push origin +master
See the AUTHORS.md
file in the root of this repo.