Chapter 3. Python Infrastructure
In building a house, there is the problem of the selection of wood.
It is essential that the carpenter’s aim be to carry equipment that will cut well and, when he has time, to sharpen that equipment.
Miyamoto Musashi, The Book of Five Rings
This chapter provides a practical starting point for setting up Python for finance work. It focuses on simple, robust tools that work across operating systems: the command-line shell, lightweight editors, virtual environments, and notebooks (locally and in the cloud).
You learn how to install Python, use the shell to run scripts, manage virtual
environments with venv and pip, and work with notebooks through JupyterLab and
Google Colab. The goal is a setup that is easy to reproduce on a laptop, in a Docker
container, or on a cloud server without relying on heavy IDEs.
The chapter shows how to install and verify a modern Python interpreter, how to use the shell on Linux, macOS, and Windows, and how to create isolated environments ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access