Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To open a demo, one hat to navigate to the desired demo via the Jupyter tab. The Jupyter tab inside your browser
displays your user folder, left clicking on a folder opens it. Clicking Notebooks have the ending .ipynb, clicking on a demo
file opens it inside its a new tab.

In the pictures below the steps are shown.

...

Every demo communicates with the module by a serial communication port. This port has been assigned
a number during the driver installation. In our case it is COM5.

In dependency to the code of a demo, there are two variants.

Variant 1:
At the beginning of each demo the Notebook is a line:

ser = serial.Serial('COM5', 115200)
                  or
comport = 'COM5'

Replace the comport number in red with yours and save this change by pressing "s" whilst holding the
control key (Ctrl + s).

Variant 2:
Some demos contain a graphical user interface. The available comport will be presented
automatically and can be selected trough the GUI.
As an option, a default comport and module can be set at the beginning of the notebook.

Running the demo

A notebook consists of cells, in which its content resides. Demos so far only contain one cell, to run the demo,
the PC's focus must be upon the cell, left clicking into the cells source code focuses this cell.

...

Often demos gather data from the module and display them in graph plots.
All output of a notebooks cell is displayed below the cell.

Annotations

  • The demos are linked to Jupyter through the import and use of only the following modules:
    IPython - Interacting from within the Notebook with its output / plots
    ipywidgets - Interactive Widgets/GUI elements for the Jupyter Notebook
  • Show line numbers inside a notebook: View → Toggle Line Numbers