pi_memorizer module

class PimemorizerTab

Bases: object

A tab for testing and improving memory of the digits of π (Pi).

This component provides: - A text box to display the digits entered so far. - A numeric keypad to input digits. - A scoring system to track the current and high scores.

label

The label for the tab, set to “𝝅 Pi memorizer”.

callbacks()

Register Dash callbacks for the Pi memorizer tab.

Return type:

None

Notes

  • The update_input callback handles the interaction between the numeric keypad and the current sequence, score, and high score.

label: str
layout()

Generate the layout for the Pi memorizer tab.

Returns:

A Div element containing:
  • A text area to display the user’s current input sequence.

  • A numeric keypad for entering digits.

  • Score and high score displays to track progress.

Return type:

html.Div