dt.options is a namespace object that stores all datatable runtime configuration. You can read any option by attribute access and set it by assignment. Changes take effect immediately and persist for the lifetime of the Python session.
dt.options.describe() to print all current values with their defaults and documentation.
Context manager
Usedt.options.context() to temporarily change options inside a with block. The original values are restored automatically when the block exits, even if an exception is raised.
Resetting options
nthreads
Number of threads used for all parallel computations. Defaults to the number of logical CPU cores reported by the operating system.
- Set to
1to force single-threaded execution. - Set to
0to restore the default (hardware concurrency). - Negative values request fewer threads than the maximum (e.g.,
-2means “all cores minus 2”).
display group
Options that control how frames are rendered in the console or a notebook.
Whether unicode characters are allowed in frame display output. Disable on terminals that cannot render unicode.
Number of rows shown at the top of a truncated frame view.
Number of rows shown at the bottom of a truncated frame view.
Row count threshold above which the frame display is truncated. Frames with fewer rows are displayed in full.
Maximum character width of any column in the rendered output. Wider values are truncated with an ellipsis.
Enable or disable the interactive (scrollable) frame viewer. When enabled, large frames are shown in a terminal pager.
Whether ANSI color codes are used in console output. Disable when piping output to a file or a tool that does not understand ANSI.
frame group
Options that control default column naming for new frames.
Prefix used when auto-generating column names. Defaults to
"C", producing names like C0, C1, C2, …Starting index for auto-generated column names. Defaults to
0.fread group
Options that affect the behavior of dt.fread().
Whether
fread should automatically recognize and parse date fields. Disable to keep date-like columns as strings.Whether
fread should automatically recognize and parse time/timestamp fields.Whether unicode characters in
fread log messages are escaped.progress group
Options controlling the progress bar shown during long-running operations.
Master switch for progress reporting. Set to
False to suppress all progress bars.Minimum task duration (in seconds) before a progress bar is displayed. Tasks shorter than this threshold show no progress bar.
How many times per second the progress bar is redrawn.
Whether to erase the progress bar from the terminal once a task finishes successfully.
Whether long-running datatable tasks can be interrupted with
Ctrl+C.A custom progress-reporting function. When set, datatable calls this function instead of drawing the built-in progress bar. The function receives a progress value in
[0, 1].debug group
Options for logging internal datatable operations, useful for performance profiling and troubleshooting.
Enable or disable debug logging. When
True, datatable logs each internal function call.Whether to include function/method arguments in debug log messages.
Maximum number of characters printed per argument value in debug log messages.
A custom logger object. Must have a
.debug(msg) method. When None, debug output is written to sys.stdout.Enabling
debug.enabled can produce a large volume of output during normal operations. It is recommended only for targeted troubleshooting.