From 5bcb5e38b6053153a09ef7f9214389a4f1887940 Mon Sep 17 00:00:00 2001 From: Alex Kwiatkowski Date: Wed, 24 Jul 2019 09:43:27 -0700 Subject: [PATCH] Use separate lines in README for setup commands --- README.md | 49 ++++++++++++++++++++++++++++--------------------- 1 file changed, 28 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index a637b041..dde63afa 100644 --- a/README.md +++ b/README.md @@ -39,9 +39,11 @@ Linux ###5. Download the source code for this book: -`$ git clone https://github.com/jimmysong/programmingbitcoin` -`$ cd programmingbitcoin` - +``` +$ git clone https://github.com/jimmysong/programmingbitcoin +$ cd programmingbitcoin +``` + ###6. Install virtualenv: `$ pip install virtualenv` @@ -50,29 +52,34 @@ Linux Linux/macOS -`$ virtualenv -p python3 .venv` -`$ . .venv/bin/activate` -`(.venv) $ pip install -r requirements.txt` +``` +$ 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` +``` +C:\programmingbitcoin> virtualenv -p +C:\PathToYourPythonInstallation\Python.exe .venv +C:\programmingbitcoin> .venv\Scripts\activate.bat +C:\programmingbitcoin> pip install -r requirements.txt +``` + ###8. Run Jupyter Notebook: -`(.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` +``` +(.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](https://raw.githubusercontent.com/jimmysong/programmingbitcoin/master/images/prbc_0001.png).