mrguseinov / py4e

The companion repository to the "Python for Everybody" book.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

Fully automated quizzes and tasks, carefully designed in accordance with the great "Python for Everybody" book.


Installation

Update the software.

sudo apt update && sudo apt upgrade -y

Install python and pip (python package manager).

sudo apt install python3.12 python3-pip

Install virtualenv (python environments manager).

pip3 install virtualenv && source ~/.profile

Clone this repository and cd into it.

git clone https://github.com/mrguseinov/py4e.git && cd py4e

Create a new virtual environment and activate it.

virtualenv .venv && source .venv/bin/activate

Install the required packages.

pip install -r requirements.txt

Usage

Activate the virtual environment if it's not active.

source .venv/bin/activate

Start the jupyter lab.

jupyter lab

Notes For WSL & SSH Users

More info in the Jupyter Notebook Docs.

Create a config file:

jupyter notebook --generate-config

Disable launching browser by redirect file:

c.NotebookApp.use_redirect_file = False

About

The companion repository to the "Python for Everybody" book.

License:GNU Affero General Public License v3.0


Languages

Language:Jupyter Notebook 94.1%Language:Python 5.9%