Sessions

Sessions

LispPad allows users to manage four different types of documents: for sessions, for code, for text documents, and for drawings. Sessions are used to load, debug and execute Lisp code. A new session is created via the “File > New Session” menu item.

Each LispPad session represents a virtual machine for executing Scheme code. Users can run multiple sessions simultaneously. Sessions are isolated and cannot interact with each other. The primary means to interact with the virtual machine is the read-eval-print loop:

Here is an example for an interaction with the read-eval-print loop:

 (+ 3 8)
11
 (map fx1+ '(1 2 3 4))
(2 3 4 5)

The expression (+ 3 8) was entered by the user and evaluates to 11. The expression entered on the second prompt evaluates to the list (2 3 4 5).

Session window

The session window typically looks like this: LispPad session window The buttons in the toolbar have the following functionality:

Session inspectors

Selecting the Info button will toggle the sidebar, revealing four different selectors:

Here is a screenshot of the Libraries inspector: LispPad libraries inspector

The following screenshot showcases the Environment inspector: LispPad environment inspector

Within session (and editor) windows, invoking the “View > Explain…” menu item will trigger a documentation lookup. Documentation is typically returned as a popover dialog. In the Environment inspector, documentation can also be displayed in the sidebar.