liveBook · Manning

Computational notebook

As explained in Investing for Programmers

A data science notebook is an interactive document that combines executable code, outputs, visualizations, and explanatory text for data analysis.

A Jupyter Notebook is an interactive environment for running code in separate cells and reusing their results. It suits exploratory financial research because each investment hypothesis can be tested, revised, or rerun without building a dedicated frontend. section 3.3

Use notebooks to combine data collection, analysis, and lightweight storage. A practical workflow can merge broker or exchange data with manually tracked holdings, store records in SQLite, and export asset categories to separate spreadsheet worksheets. section 6.1

A notebook-based research workflow can:

  • Record an investment hypothesis and explore data to support or disprove it. section 3.3
  • Rerun cells with different data or adapt them for alternative analyses. section 3.3
  • Consolidate holdings from multiple sources while retaining manually entered assets that lack API access. section 6.1
  • Call language models with reusable prompts and export responses for later review and fact-checking. section 9.2 section 9.2.2

Asset monitor

Build a notebook that collects stock, crypto, and bond holdings from available platforms, reads offline assets from an SQLite table, calculates portfolio value and projected annual returns, and exports each asset category to a spreadsheet tab. Treat missing APIs as a data-quality constraint rather than assuming the pipeline is complete. section 6.1

Figure 6.1 Data Flow from asset data to worksheets in a Google Sheets document
figure

Trace how asset data moves through collection and consolidation into dedicated spreadsheet worksheets. section 6.1

How Investing for Programmers covers it

How deep it goes
Demonstrates cell-based exploration and applied data pipelines, while deferring installation guidance and deeper implementation details to supporting material.
Examples
Uses investment hypotheses, mixed-source holdings, SQLite tables, spreadsheet worksheets, prompt repositories, and exported Notion research notes.
What it assumes
Teaches the notebook workflow while providing supporting guidance for Python libraries and SQLite users who need additional grounding.
What you can do after
Build interactive analyses and reusable research pipelines that collect, inspect, store, export, and fact-check financial information.
How it connects
Connects interactive code with DataFrames, APIs, SQLite, spreadsheets, language models, reusable prompts, and Notion.

Also explained in

Compare how 4 books explain computational notebook →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Investing for Programmers. The section links point to the parts of the book it draws on.