BY JIMMY SONG
Repository for the book to be published by O'Reilly.
This book will be licensed under CC-BY-NC-ND once the book is published.
If you do not want to change your local dev environment you can use VS Code with the remote containers extension installed. You'll need to install Docker and the Remote Containers extension to VS Code then open the cloned project. VS Code should create the Docker container with Python and all the other things you'll need to run the exercises and test the code on the book
To get the most out of this book, you’ll want to create an environment where you can run the example code and do the exercises. Here are the steps required to set everything up:
Windows: https://www.python.org/ftp/python/3.6.2/python-3.6.2-amd64.exe
macOS: https://www.python.org/ftp/python/3.6.2/python-3.6.2-macosx10.6.pkg
Linux
2. Install pip by downloading this script: https://bootstrap.pypa.io/get-pip.py.
$ python3 get-pip.py
4. Install Git. The commands for downloading and installing it are at https://git-scm.com/downloads.
$ git clone https://github.com/jimmysong/programmingbitcoin
$ cd programmingbitcoin
$ pip install virtualenv
Linux/macOS
$ virtualenv -p python3 .venv
$ . .venv/bin/activate
(.venv) $ pip install -r requirements.txt
Windows
C:\programmingbitcoin> virtualenv -p
C:\PathToYourPythonInstallation\Python.exe .venv
C:\programmingbitcoin> .venv\Scripts\activate.bat
C:\programmingbitcoin> pip install -r requirements.txt
(.venv) $ jupyter notebook
[I 11:13:23.061 NotebookApp] Serving notebooks from local directory: /home/jimmy/programmingbitcoin
[I 11:13:23.061 NotebookApp] The Jupyter Notebook is running at: [I 11:13:23.061 NotebookApp] http://localhost:8888/?token= f849627e4d9d07d2158e3fcde93590eff4a9a7a01f65a8e7
[I 11:13:23.061 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 11:13:23.065 NotebookApp]
Copy/paste this URL into your browser when you connect for
the first time, to login with a token:
http://localhost:8888/?token=f849627e4d9d07d2158e3fcde93590eff4a9a7a01f65a8e7
You should have a browser open up automatically, as shown in Figure P-1.
MORE INFO AT: https://learning.oreilly.com/library/view/programming-bitcoin/9781492031482/preface01.html#setting_up