In Desmos Notebook, you can use features such as editable expressions, sliders, and buttons to make a notebook interactive for viewers.
To learn more about Notebook, visit our Getting Started: Desmos Notebook article. Or, try all the interactive features in the Match the Intersection example notebook to jump right in.
Desmos Notebook is a new tool, so you can expect bugs, surprises, and missing features. We’ll be adding new capabilities in the coming weeks and months and might accidentally break some of your saved notebooks as we do. Please reach out to us at feedback@desmos.com with any bug reports or feature requests.
Editable Expressions
When you add an expression line to a notebook, you can choose how viewers will be able to interact with that line.
By default, expression lines are locked, and viewers cannot change them. However, you can click Expression Options and then Editable to allow viewers to type into that expression line when viewing your shared notebook. This way, they can set their own variable values or function definitions.
To see this behavior, click Preview while in the editor to see how your shared notebook will appear to others.
Variable Sliders
Just like in other Desmos graphing tools, you can add and adjust variable sliders that instantly update any graphs or expressions that use the variable. When viewing a shared notebook, viewers will be able to drag sliders within specific bounds.
Click Add Slider from Expressions Options in an expression line, or Variable Options in the Notebook Variables menu.
You can adjust slider settings to control their appearance and behavior. Click Slider Options to access these settings. You can add a label (which defaults to the name of the variable) or toggle the display of the slider value.
You can also adjust the upper and lower bounds and step size, which determine the values that your variable can take. If you define a variable in a graph and then connect it to your notebook, you can change its slider settings in the graph where it’s defined or in a slider in the notebook.
Actions
You can define and run actions in Notebook similar to how you would in the other calculators.
First, define an action in an expression line in your notebook. Then, click Action to run the action on each click. All actions are visible both when editing and viewing a notebook.
Add Buttons
Buttons allow you to run actions directly from a notebook.
First, define a notebook variable either in an expression line or by connecting it from a graph. Then, open the Item menu and click Button.
You can also add a button directly from Variable Options or the Expressions Options of a variable or an expression line that contains the definition of an action.
Once you add a button, you can click Button Options to change its style and function.
You can change the label and color to customize a button’s appearance. In the On Click section, you can specify the action (or multiple actions separated by commas) that the button will run. If you define an action by a variable name in an expression line in your notebook, you can also reference that variable name here.
You can place your buttons inline with text throughout your notebook, including in columns, headers, or different alignments. You cannot drag and drop buttons to arrange them in your notebook, but you can copy and paste them instead.
Explore the Simple Button Example.
Learn More
- Getting Started: Desmos Notebook
- Desmos Notebook User Guide
- Example Notebook: Introducing Notebook
- Gallery of Example Notebooks
- Actions
- Sliders and Movable Points in a Graph
Please write in with any questions or feedback to support@desmos.com.