Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/mljar/mercury
/ functions
Functions
801 in github.com/mljar/mercury
⨍
Functions
801
◇
Types & classes
96
↳
Endpoints
4
↓ 458 callers
Method
get
(self)
mercury_app/root.py:14
↓ 96 callers
Method
clear
Clear all messages from the chat.
mercury/chat/chat.py:296
↓ 44 callers
Function
Table
( data, page_size: int = 50, search: bool = False, select_rows: bool = False, width: str =
mercury/table.py:111
↓ 40 callers
Function
clear_runtime_url_params
Remove all runtime URL params.
mercury/url_params.py:47
↓ 37 callers
Function
set_runtime_url_params
Store URL query params for the current Mercury runtime. Expected input shape: { "name": ["alice"], "color":
mercury/url_params.py:11
↓ 26 callers
Method
set
Set determinate value; switches off indeterminate mode if enabled.
mercury/progressbar.py:124
↓ 25 callers
Function
Columns
Create a responsive row of output columns. This helper returns a tuple of `ColumnOutput` widgets (one per column), displayed inside a `C
mercury/columns.py:97
↓ 24 callers
Method
get
(self, path: str = None)
mercury_app/handlers.py:245
↓ 23 callers
Method
add_widget
(code_uid, widget)
mercury/manager.py:62
↓ 23 callers
Method
get_code_uid
(widget_type="widget", key="", index=None, args=[], kwargs={})
mercury/manager.py:49
↓ 23 callers
Method
get_widget
(code_uid)
mercury/manager.py:66
↓ 22 callers
Function
Expander
Create and display an Expander. The function returns an `ipywidgets.Output` that you can write into: >>> out = mr.Expander("Details")
mercury/expander.py:106
↓ 22 callers
Function
_disable_display
(monkeypatch)
mercury/tests/test_render_context.py:11
↓ 22 callers
Function
source_cell_context
(cell_id: str | None)
mercury/render_context.py:117
↓ 21 callers
Method
get
(self, path, content=True, type=None, format=None)
mercury/tests/test_mercury_hybrid_cm.py:18
↓ 18 callers
Function
NumberInput
Create and display a NumberInput widget. This function instantiates a `NumberInputWidget` with the given label and numeric constraints.
mercury/number.py:19
↓ 18 callers
Function
Tabs
Create a tabbed container with one output area per tab. This helper renders a tab header and a content panel area. Each tab is associate
mercury/tabs.py:138
↓ 18 callers
Method
get
(self, path: str)
mercury_app/mercury_hybrid_cm.py:38
↓ 16 callers
Function
Slider
Create and display a Slider widget. This function instantiates a `SliderWidget` with the given label and range. If a widget with the sam
mercury/slider.py:19
↓ 16 callers
Function
_disable_display
(monkeypatch)
mercury/tests/test_widget_render_metadata.py:27
↓ 16 callers
Method
add
* Add a widget to the application shell. * * @param widget - The widget being added. * * @param area - Optional region in the shell into w
packages/application/src/app/index.ts:57
↓ 15 callers
Function
_norm
Jupyter contents paths are POSIX-style and relative to root (no leading slash).
mercury_app/mercury_hybrid_cm.py:22
↓ 14 callers
Method
_add_inline_style
(self, html: str, tag: str, style: str)
mercury/md.py:67
↓ 14 callers
Method
_is_shadow
(path: str)
mercury_app/mercury_hybrid_cm.py:138
↓ 14 callers
Function
_mix_colors
(color_a: str, color_b: str, ratio: float)
mercury/config.py:294
↓ 14 callers
Function
apply_widget_render_metadata
(widget: object)
mercury/render_context.py:110
↓ 14 callers
Function
with_widget_render_metadata
(kwargs: dict)
mercury/render_context.py:104
↓ 12 callers
Method
delete
(self, path: str)
mercury_app/mercury_hybrid_cm.py:58
↓ 12 callers
Function
get_render_context
()
mercury/render_context.py:58
↓ 12 callers
Method
updatePanelVisibility
()
packages/lab/src/mercury/app/widget.ts:1616
↓ 11 callers
Function
CheckBox
Create and display a Checkbox widget. Examples -------- >>> import mercury as mr >>> cb = mr.Checkbox(label="Auto-refresh")
mercury/checkbox.py:19
↓ 11 callers
Method
error
()
packages/lab/src/mercury/app/busyIndicator.ts:134
↓ 11 callers
Method
insertionIndexFor
* Find insertion index inside `container` so that widgets maintain notebook order. * Ensures that code inputs appear before their outputs for the s
packages/lab/src/mercury/app/widget.ts:1048
↓ 11 callers
Function
normalizePlugins
(extensionModule)
app/index.js:64
↓ 10 callers
Function
MultiSelect
Create and display a MultiSelect widget. This function instantiates a `MultiSelectWidget` with the given label, initial selected values,
mercury/multiselect.py:19
↓ 10 callers
Function
_disable_display
(monkeypatch)
mercury/tests/test_datetime_widgets.py:17
↓ 10 callers
Method
_handle_file_message
(self, _widget, content, buffers)
mercury/file.py:736
↓ 10 callers
Function
saveMercuryNotebook
( context: DocumentRegistry.IContext<INotebookModel> )
packages/lab/src/mercury/save.ts:65
↓ 9 callers
Function
UploadFile
Create and display an UploadFile widget. This function instantiates an `UploadFileWidget` that lets the user upload one or more files (d
mercury/file.py:118
↓ 9 callers
Method
finish
One unit of work finished
packages/lab/src/mercury/app/busyIndicator.ts:99
↓ 8 callers
Function
Select
Create and display a Select widget. This function instantiates a `SelectWidget` with the given label, initial value, and list of choices
mercury/select.py:18
↓ 8 callers
Method
_isMobileLayout
()
packages/lab/src/mercury/app/widget.ts:269
↓ 8 callers
Method
add
Add a Message widget to the chat and scroll to it.
mercury/chat/chat.py:288
↓ 8 callers
Function
patchMercuryMeta
( context: DocumentRegistry.IContext<INotebookModel>, patch: Record<string, any> )
packages/lab/src/mercury/widget.ts:55
↓ 8 callers
Function
readMercuryMeta
( context: DocumentRegistry.IContext<INotebookModel> )
packages/lab/src/mercury/widget.ts:40
↓ 7 callers
Function
TextInput
Create and display a TextInput widget. This function instantiates a `TextInputWidget`. If a widget with the same configuration already e
mercury/text.py:18
↓ 7 callers
Method
_clearSidebarHideTimer
()
packages/lab/src/mercury/app/widget.ts:1706
↓ 7 callers
Function
_relative_luminance
(color: str)
mercury/config.py:304
↓ 7 callers
Method
append_markdown
Append Markdown content and re-render. Useful for streaming or incremental message updates.
mercury/chat/message.py:206
↓ 7 callers
Method
error
(self, obj, value)
mercury/table.py:325
↓ 6 callers
Method
_handle_refresh
(self, steps=("filter", "sort", "paginate"))
mercury/table.py:1055
↓ 6 callers
Function
_json_safe_table_value
(value: Any)
mercury/table.py:30
↓ 6 callers
Function
_parse_hex_color
(value: str)
mercury/config.py:273
↓ 6 callers
Method
_repr_html_
(self)
mercury/indicator.py:311
↓ 6 callers
Method
_set_mode
Switch rendering mode and reset unrelated buffers. Parameters ---------- mode : {"markdown", "html", "text"}
mercury/chat/message.py:141
↓ 6 callers
Method
_source_path_for_shadow
(path: str)
mercury_app/mercury_hybrid_cm.py:143
↓ 6 callers
Method
adjustBottomHeight
(maxPx = AppWidget.MAX_BOTTOM_PX)
packages/lab/src/mercury/app/widget.ts:1938
↓ 6 callers
Method
filter
(self, record)
mercury_app/app.py:30
↓ 6 callers
Function
filterPlugins
(plugins, allowIds)
app/index.js:75
↓ 6 callers
Function
get_url_param_value
Return the first URL param value for a given key, if present.
mercury/url_params.py:65
↓ 6 callers
Method
hide
(self)
mercury/progressbar.py:151
↓ 6 callers
Function
normalize_theme
(theme: dict | None)
mercury/config.py:403
↓ 6 callers
Method
panelWidgets
(panel: Panel | null | undefined)
packages/lab/src/mercury/app/widget.ts:1039
↓ 6 callers
Method
rebuildCellOrder
()
packages/lab/src/mercury/app/widget.ts:1031
↓ 6 callers
Function
removeElements
(node: HTMLElement, className: string)
packages/lab/src/mercury/app/domHelpers.ts:2
↓ 5 callers
Method
_notifySidebarVisibility
(visible: boolean)
packages/lab/src/mercury/app/widget.ts:1713
↓ 5 callers
Function
_now
()
mercury_app/mercury_hybrid_cm.py:18
↓ 5 callers
Method
_refreshSplitConstraints
()
packages/lab/src/mercury/app/widget.ts:1721
↓ 5 callers
Method
_syncSidebarToggleButtons
()
packages/lab/src/mercury/app/widget.ts:1745
↓ 5 callers
Function
resolve_temporal_value
Resolve initial date/time-like value using runtime URL params. ``validator`` should accept a string and return True when the value is va
mercury/url_params.py:402
↓ 5 callers
Method
setAttr
(el: HTMLElement | null | undefined, id: string, label: string)
packages/lab/src/mercury/app/outputStamper.ts:15
↓ 4 callers
Method
_flipDown
(_reason: string)
packages/lab/src/mercury/app/healthmonitor.ts:48
↓ 4 callers
Function
_manager
(files=None)
mercury/tests/test_mercury_hybrid_cm.py:76
↓ 4 callers
Function
_normalize_date
(value: str | None, fallback: str = "")
mercury/daterange.py:19
↓ 4 callers
Method
_render
Re-render the message content based on the active mode. Clears the output widget and displays the current buffer using the a
mercury/chat/message.py:116
↓ 4 callers
Method
_syncSidebarBackdrop
()
packages/lab/src/mercury/app/widget.ts:1780
↓ 4 callers
Function
build_theme_css_vars
(theme: dict | None)
mercury/config.py:568
↓ 4 callers
Function
build_theme_font_links
(theme: dict | None)
mercury/config.py:552
↓ 4 callers
Method
dispose
()
packages/lab/src/mercury/app/widget.ts:568
↓ 4 callers
Method
exists
(self, path: str)
mercury_app/mercury_hybrid_cm.py:35
↓ 4 callers
Function
load_config_file
(config_path: str = "config.toml")
mercury/config.py:255
↓ 4 callers
Function
log
(...args: any[])
packages/lab/src/executor/outputArea.ts:88
↓ 4 callers
Function
sanitize_notebook_for_mercury_runtime
Return a notebook copy stripped of runtime artifacts. Mercury notebooks are treated as app source. Widget state, saved outputs, and exec
mercury_app/notebook_sanitize.py:7
↓ 4 callers
Method
save
(self, model: Dict[str, Any], path: str)
mercury_app/mercury_hybrid_cm.py:345
↓ 4 callers
Method
show
(self)
mercury/progressbar.py:148
↓ 4 callers
Method
to_json_safe
Convert a single value to something JSON-serializable.
mercury/table.py:181
↓ 4 callers
Function
unwrap
(x: any)
packages/lab/src/mercury/app/ipyWidgetsHelpers.ts:91
↓ 3 callers
Function
Button
Create and display a Button widget. This function instantiates a `ButtonWidget` with the given label and style. If a widget with the sam
mercury/button.py:19
↓ 3 callers
Function
DateTimeInput
Create and display a datetime-local input widget. Values use ``YYYY-MM-DD HH:MM`` or ``YYYY-MM-DD HH:MM:SS`` strings.
mercury/datetime_input.py:68
↓ 3 callers
Function
Markdown
Display Markdown text with Mercury 'position' support. Parameters ---------- text : str Markdown content (in Markdown syntax
mercury/md.py:206
↓ 3 callers
Method
_ensure_valid_kernelspec
If the notebook kernelspec is missing or refers to a non-installed kernel, rewrite it to the default kernel and update display_name (
mercury_app/mercury_hybrid_cm.py:235
↓ 3 callers
Method
_from_list_of_dicts
Normalize list[dict] input.
mercury/table.py:227
↓ 3 callers
Method
_hideSidebarFromToggle
()
packages/lab/src/mercury/app/widget.ts:1798
↓ 3 callers
Method
_is_shadow_root
(path: str)
mercury_app/mercury_hybrid_cm.py:133
↓ 3 callers
Function
_normalize_date
(value: str | None, fallback: str = "")
mercury/date.py:19
↓ 3 callers
Function
_normalize_datetime
(value: str | None, fallback: str = "")
mercury/datetime_input.py:19
↓ 3 callers
Function
_normalize_range
(value: Sequence[str] | None, min_value: str, max_value: str)
mercury/daterange.py:51
↓ 3 callers
Function
_normalize_time
(value: str | None, fallback: str = "")
mercury/time.py:19
↓ 3 callers
Function
_normalize_value
(value: str | None, min_value: str, max_value: str)
mercury/datetime_input.py:53
↓ 3 callers
Function
_normalize_value
(value: str | None, min_value: str, max_value: str)
mercury/time.py:51
next →
1–100 of 801, ranked by callers