Help › Work in notebooks

Export a notebook as a report

Make a report of a notebook, as one HTML file or as Markdown, with its text, results, charts and pictures, from Querlyn or from the command line.

Querlyn 0.1.0 is not released yet. This help describes it ahead of release.

A notebook's report is the notebook to read: its text, its results as tables, its charts and its pictures, with or without the queries that made them. Send it to someone who does not use Querlyn, put it on a wiki, or keep it with the month's numbers.

Export a report

Notebook › Export Report… (Report in the notebook's toolbar, Notebook › Export Report…) asks what the report holds:

  • Format: HTML, one file that opens in any browser, or Markdown, a .md file with GitHub's tables and its charts and pictures in a folder beside it (monthly_files beside monthly.md).
  • Include the query and Python text: the cells' text above their results, or the results alone.
  • Rows of each table: a report's table shows at most this many rows, and says how many there were.

Export… then asks where to write it.

What a report holds

The report is made from the notebook as ⌘S on macOS or Ctrl+S on Windows and Linux would save it, so it holds what the file holds:

  • text cells, as they read in the notebook;
  • each result's saved rows, up to the rows you chose, and a note under a table that has more ("First 100 of 1,000 saved rows");
  • charts, plans, what a cell printed, errors, and Python's pictures and DataFrames;
  • when and where each cell ran, and the parameters' values its results were made with.

Masked columns stay masked: their values are not in the notebook's file, and the report shows •••••• in their place.

As the dashboard

Tick As the dashboard to lay the report out as the notebook's dashboard: the parameters' values, the text, charts and tables, without code, run details or what the runs printed. A cell that shows its chart gives the chart without its table.

Under a result, a report also says what changed since the run before, when the notebook knows.

An HTML report is only a page

An HTML report opens offline and runs nothing: it holds no script, and a browser fetches nothing for it from the web. Its pictures and charts are inside the file. A picture a text cell shows from a web address is named in the report, not included. Links to web pages stay links; links that run Querlyn's commands become their text.

It follows the reader's light or dark appearance, and prints on white.

PDF

Querlyn does not write PDF files. Open the HTML report in a browser and print it to PDF there: its tables, charts and pictures print as they show.

From the command line

querlyn notebook run writes a report of the run with --report, HTML or Markdown by the file's extension, and leaves the text out with --report-hide-code, or lays it out as the dashboard with --report-dashboard. See Run a notebook.

Help for Querlyn 0.1.0. All help topics