Web defaults

As a server administrator, you can set default values for many of the options in the web UI Settings menu, such as the time zone and the date-time format. Users can still change these settings for themselves. When a user changes a setting in the Settings menu, their browser stores the new value, and it overrides the server default.

The only setting you can stop users from changing is Enable WebGL, as described in Advanced properties.

The Settings menu groups its options into sections. This page covers the Default Format & Time zone, Editor, and Advanced sections, the only sections whose defaults a server can set. The screenshot shows the Default Format & Time zone section expanded:

The Settings menu, with the Default Format & Time zone section open

Set a default

You set defaults in the Deephaven configuration file. See Create a Deephaven configuration file for details.

To configure a default setting:

  1. Set the value of one or more of the properties listed in the tables below in the configuration file.
  2. Add your property names to client.configuration.list, the comma-separated list of configuration properties that the server sends to the web UI. Setting this property replaces its default value, so copy the default list from dh-defaults.prop and append your names to it.
  3. Restart the server. The server reads the configuration file only at startup.
  4. Check the new default in a browser where that setting hasn't been changed. A user who already changed a setting in their browser keeps their own value.

For example, this configuration file sets defaults for the time zone and the date-time format:

Default format and time zone properties

These properties set the defaults for the Default Format & Time zone options in the Settings menu. To use one, set its value in your configuration file and add its name to client.configuration.list, as described in Set a default.

SettingPropertyValue
Time zonetimeZoneA time zone ID from the menu's list, such as America/Chicago, America/New_York, Europe/London, or UTC
DateTimedateTimeFormatA date-time format, such as one of the menu's choices: yyyy-MM-dd HH:mm:ss, yyyy-MM-dd HH:mm:ss.SSS, or yyyy-MM-dd HH:mm:ss.SSSSSSSSS
Show time zone in datesshowTimeZonetrue or false
Show 'T' separatorshowTSeparatortrue or false
DecimaldecimalFormatA number format, such as ###,##0.0000
IntegerintegerFormatA number format, such as ###,##0
Show truncated numbers as ###truncateNumbersWithPoundtrue or false
Show empty strings as emptyshowEmptyStringstrue or false
Show null strings as nullshowNullStringstrue or false
Show extra "group" columnshowExtraGroupColumntrue or false

Editor properties

These properties set the defaults for the Editor options in the Settings menu, which control the notebook editor. To use one, set its value in your configuration file and add its name to client.configuration.list, as described in Set a default.

SettingPropertyValue
Enable Minimapweb.user.notebookSettings.isMinimapEnabledtrue or false
Format on Saveweb.user.notebookSettings.formatOnSavetrue or false
Enable Ruff Python Linterweb.user.notebookSettings.python.linter.isEnabledtrue or false
Customize Ruff Settingsweb.user.notebookSettings.python.linter.configA JSON object of Ruff settings, on one line

The web.user.notebookSettings.python.linter.config value replaces the UI's built-in Ruff settings rather than merging with them, so include every setting you want. If the value isn't valid JSON, the UI ignores it and uses its built-in settings.

Changing any one Editor option in the Settings menu saves the current values of Enable Minimap, Format on Save, and Enable Ruff Python Linter in the user's browser, even the ones the user didn't change. After that, a change to one of those server defaults no longer reaches that user. Customize Ruff Settings is saved the same way only if it already had a value, from the user or from the server. If it had none, a Ruff configuration that the server adds later still applies.

Advanced properties

These properties control the Enable WebGL option in the Advanced section of the Settings menu. The default client.configuration.list already includes both, so you only need to set their values. Setting web.webgl.editable to false stops users from changing the Enable WebGL option, but it doesn't override a WebGL setting that a user saved in their browser before you set it.

PropertyEffectValue
web.webglDefault for the Enable WebGL optiontrue or false
web.webgl.editableWhether users can change Enable WebGL in the Settings menutrue or false