Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 2.8 KB

README.rst

File metadata and controls

68 lines (45 loc) · 2.8 KB

How to Think Like a Computer Scientist: Interactive Edition

This project began with the original How to Think Like a Computer Scientist text by Jeffrey Elkner, Peter Wentworth, Allen B. Downey, Chris Meyers, and Dario Mitchell. Since 2011 Brad Miller, David Ranum, Barbara Ericson, Mark Guzdial, and many others have built on the text making it interactive.

Programming is not a "spectator sport". It is something you do, something you participate in. It would make sense, then, that the book you use to learn programming should allow you to be active. That is our goal.

This book is meant to provide you with an interactive experience as you learn to program in Python. You can read the text, watch videos, and write and execute Python code. In addition to simply executing code, there is a unique feature called 'codelens' that allows you to control the flow of execution in order to gain a better understanding of how the program works.

https://travis-ci.org/RunestoneInteractive/thinkcspy.svg?branch=master

Getting Started

We have tried to make it as easy as possible for you to build and use this book.

You can see and read this book online at runestone.academy

Important

The restructuredText version of this book is deprecated!

Building with PreTeXt

  1. Create a virtual environment
  2. pip install pretextbook
  3. To build run: pretext build web
  4. pretext view web

Note: The pretext sources are in the pretext folder, we will keep the _sources folder until we are 100% sure that the book has been converted correctly and as thoroughly as possible.

Building for Production on a Runestone Server

  1. clone this repo to httlacs instead of thinkcspy
  2. Run rsmanage addcourse and add httlacs as course name and base course name
  3. Run rsmanage build --ptx httlacs

Building a PDF

  1. clone this repo
  2. install pretext with pip install pretext
  3. run pretext build pdf This will generate the needed assets and then try to build the pdf. The pdf will be in the output/pdf folder.

Building with runestone

As mentioned above this method is deprecated, but will still work. Any updates to this book should be made in PreTeXt NOT RST.

You can build it and host it yourself in just a few simple steps:

  1. pip install -r requirements.txt -- Should install everything you need
  2. runestone build -- will build the html and put it in ./build/thinkcspy
  3. runestone serve -- will start a webserver and serve the pages locally from ./build/thinkcspy