Skip to content

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

License

Notifications You must be signed in to change notification settings

mrguseinov/py4e

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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