MCPcopy Index your code

hub / github.com/mljar/mercury / functions

Functions801 in github.com/mljar/mercury

↓ 458 callersMethodget
(self)
mercury_app/root.py:14
↓ 96 callersMethodclear
Clear all messages from the chat.
mercury/chat/chat.py:296
↓ 44 callersFunctionTable
( data, page_size: int = 50, search: bool = False, select_rows: bool = False, width: str =
mercury/table.py:111
↓ 40 callersFunctionclear_runtime_url_params
Remove all runtime URL params.
mercury/url_params.py:47
↓ 37 callersFunctionset_runtime_url_params
Store URL query params for the current Mercury runtime. Expected input shape: { "name": ["alice"], "color":
mercury/url_params.py:11
↓ 26 callersMethodset
Set determinate value; switches off indeterminate mode if enabled.
mercury/progressbar.py:124
↓ 25 callersFunctionColumns
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 callersMethodget
(self, path: str = None)
mercury_app/handlers.py:245
↓ 23 callersMethodadd_widget
(code_uid, widget)
mercury/manager.py:62
↓ 23 callersMethodget_code_uid
(widget_type="widget", key="", index=None, args=[], kwargs={})
mercury/manager.py:49
↓ 23 callersMethodget_widget
(code_uid)
mercury/manager.py:66
↓ 22 callersFunctionExpander
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 callersFunction_disable_display
(monkeypatch)
mercury/tests/test_render_context.py:11
↓ 22 callersFunctionsource_cell_context
(cell_id: str | None)
mercury/render_context.py:117
↓ 21 callersMethodget
(self, path, content=True, type=None, format=None)
mercury/tests/test_mercury_hybrid_cm.py:18
↓ 18 callersFunctionNumberInput
Create and display a NumberInput widget. This function instantiates a `NumberInputWidget` with the given label and numeric constraints.
mercury/number.py:19
↓ 18 callersFunctionTabs
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 callersMethodget
(self, path: str)
mercury_app/mercury_hybrid_cm.py:38
↓ 16 callersFunctionSlider
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 callersFunction_disable_display
(monkeypatch)
mercury/tests/test_widget_render_metadata.py:27
↓ 16 callersMethodadd
* 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 callersFunction_norm
Jupyter contents paths are POSIX-style and relative to root (no leading slash).
mercury_app/mercury_hybrid_cm.py:22
↓ 14 callersMethod_add_inline_style
(self, html: str, tag: str, style: str)
mercury/md.py:67
↓ 14 callersMethod_is_shadow
(path: str)
mercury_app/mercury_hybrid_cm.py:138
↓ 14 callersFunction_mix_colors
(color_a: str, color_b: str, ratio: float)
mercury/config.py:294
↓ 14 callersFunctionapply_widget_render_metadata
(widget: object)
mercury/render_context.py:110
↓ 14 callersFunctionwith_widget_render_metadata
(kwargs: dict)
mercury/render_context.py:104
↓ 12 callersMethoddelete
(self, path: str)
mercury_app/mercury_hybrid_cm.py:58
↓ 12 callersFunctionget_render_context
()
mercury/render_context.py:58
↓ 12 callersMethodupdatePanelVisibility
()
packages/lab/src/mercury/app/widget.ts:1616
↓ 11 callersFunctionCheckBox
Create and display a Checkbox widget. Examples -------- >>> import mercury as mr >>> cb = mr.Checkbox(label="Auto-refresh")
mercury/checkbox.py:19
↓ 11 callersMethoderror
()
packages/lab/src/mercury/app/busyIndicator.ts:134
↓ 11 callersMethodinsertionIndexFor
* 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 callersFunctionnormalizePlugins
(extensionModule)
app/index.js:64
↓ 10 callersFunctionMultiSelect
Create and display a MultiSelect widget. This function instantiates a `MultiSelectWidget` with the given label, initial selected values,
mercury/multiselect.py:19
↓ 10 callersFunction_disable_display
(monkeypatch)
mercury/tests/test_datetime_widgets.py:17
↓ 10 callersMethod_handle_file_message
(self, _widget, content, buffers)
mercury/file.py:736
↓ 10 callersFunctionsaveMercuryNotebook
( context: DocumentRegistry.IContext<INotebookModel> )
packages/lab/src/mercury/save.ts:65
↓ 9 callersFunctionUploadFile
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 callersMethodfinish
One unit of work finished
packages/lab/src/mercury/app/busyIndicator.ts:99
↓ 8 callersFunctionSelect
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 callersMethod_isMobileLayout
()
packages/lab/src/mercury/app/widget.ts:269
↓ 8 callersMethodadd
Add a Message widget to the chat and scroll to it.
mercury/chat/chat.py:288
↓ 8 callersFunctionpatchMercuryMeta
( context: DocumentRegistry.IContext<INotebookModel>, patch: Record<string, any> )
packages/lab/src/mercury/widget.ts:55
↓ 8 callersFunctionreadMercuryMeta
( context: DocumentRegistry.IContext<INotebookModel> )
packages/lab/src/mercury/widget.ts:40
↓ 7 callersFunctionTextInput
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 callersMethod_clearSidebarHideTimer
()
packages/lab/src/mercury/app/widget.ts:1706
↓ 7 callersFunction_relative_luminance
(color: str)
mercury/config.py:304
↓ 7 callersMethodappend_markdown
Append Markdown content and re-render. Useful for streaming or incremental message updates.
mercury/chat/message.py:206
↓ 7 callersMethoderror
(self, obj, value)
mercury/table.py:325
↓ 6 callersMethod_handle_refresh
(self, steps=("filter", "sort", "paginate"))
mercury/table.py:1055
↓ 6 callersFunction_json_safe_table_value
(value: Any)
mercury/table.py:30
↓ 6 callersFunction_parse_hex_color
(value: str)
mercury/config.py:273
↓ 6 callersMethod_repr_html_
(self)
mercury/indicator.py:311
↓ 6 callersMethod_set_mode
Switch rendering mode and reset unrelated buffers. Parameters ---------- mode : {"markdown", "html", "text"}
mercury/chat/message.py:141
↓ 6 callersMethod_source_path_for_shadow
(path: str)
mercury_app/mercury_hybrid_cm.py:143
↓ 6 callersMethodadjustBottomHeight
(maxPx = AppWidget.MAX_BOTTOM_PX)
packages/lab/src/mercury/app/widget.ts:1938
↓ 6 callersMethodfilter
(self, record)
mercury_app/app.py:30
↓ 6 callersFunctionfilterPlugins
(plugins, allowIds)
app/index.js:75
↓ 6 callersFunctionget_url_param_value
Return the first URL param value for a given key, if present.
mercury/url_params.py:65
↓ 6 callersMethodhide
(self)
mercury/progressbar.py:151
↓ 6 callersFunctionnormalize_theme
(theme: dict | None)
mercury/config.py:403
↓ 6 callersMethodpanelWidgets
(panel: Panel | null | undefined)
packages/lab/src/mercury/app/widget.ts:1039
↓ 6 callersMethodrebuildCellOrder
()
packages/lab/src/mercury/app/widget.ts:1031
↓ 6 callersFunctionremoveElements
(node: HTMLElement, className: string)
packages/lab/src/mercury/app/domHelpers.ts:2
↓ 5 callersMethod_notifySidebarVisibility
(visible: boolean)
packages/lab/src/mercury/app/widget.ts:1713
↓ 5 callersFunction_now
()
mercury_app/mercury_hybrid_cm.py:18
↓ 5 callersMethod_refreshSplitConstraints
()
packages/lab/src/mercury/app/widget.ts:1721
↓ 5 callersMethod_syncSidebarToggleButtons
()
packages/lab/src/mercury/app/widget.ts:1745
↓ 5 callersFunctionresolve_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 callersMethodsetAttr
(el: HTMLElement | null | undefined, id: string, label: string)
packages/lab/src/mercury/app/outputStamper.ts:15
↓ 4 callersMethod_flipDown
(_reason: string)
packages/lab/src/mercury/app/healthmonitor.ts:48
↓ 4 callersFunction_manager
(files=None)
mercury/tests/test_mercury_hybrid_cm.py:76
↓ 4 callersFunction_normalize_date
(value: str | None, fallback: str = "")
mercury/daterange.py:19
↓ 4 callersMethod_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 callersMethod_syncSidebarBackdrop
()
packages/lab/src/mercury/app/widget.ts:1780
↓ 4 callersFunctionbuild_theme_css_vars
(theme: dict | None)
mercury/config.py:568
↓ 4 callersFunctionbuild_theme_font_links
(theme: dict | None)
mercury/config.py:552
↓ 4 callersMethoddispose
()
packages/lab/src/mercury/app/widget.ts:568
↓ 4 callersMethodexists
(self, path: str)
mercury_app/mercury_hybrid_cm.py:35
↓ 4 callersFunctionload_config_file
(config_path: str = "config.toml")
mercury/config.py:255
↓ 4 callersFunctionlog
(...args: any[])
packages/lab/src/executor/outputArea.ts:88
↓ 4 callersFunctionsanitize_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 callersMethodsave
(self, model: Dict[str, Any], path: str)
mercury_app/mercury_hybrid_cm.py:345
↓ 4 callersMethodshow
(self)
mercury/progressbar.py:148
↓ 4 callersMethodto_json_safe
Convert a single value to something JSON-serializable.
mercury/table.py:181
↓ 4 callersFunctionunwrap
(x: any)
packages/lab/src/mercury/app/ipyWidgetsHelpers.ts:91
↓ 3 callersFunctionButton
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 callersFunctionDateTimeInput
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 callersFunctionMarkdown
Display Markdown text with Mercury 'position' support. Parameters ---------- text : str Markdown content (in Markdown syntax
mercury/md.py:206
↓ 3 callersMethod_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 callersMethod_from_list_of_dicts
Normalize list[dict] input.
mercury/table.py:227
↓ 3 callersMethod_hideSidebarFromToggle
()
packages/lab/src/mercury/app/widget.ts:1798
↓ 3 callersMethod_is_shadow_root
(path: str)
mercury_app/mercury_hybrid_cm.py:133
↓ 3 callersFunction_normalize_date
(value: str | None, fallback: str = "")
mercury/date.py:19
↓ 3 callersFunction_normalize_datetime
(value: str | None, fallback: str = "")
mercury/datetime_input.py:19
↓ 3 callersFunction_normalize_range
(value: Sequence[str] | None, min_value: str, max_value: str)
mercury/daterange.py:51
↓ 3 callersFunction_normalize_time
(value: str | None, fallback: str = "")
mercury/time.py:19
↓ 3 callersFunction_normalize_value
(value: str | None, min_value: str, max_value: str)
mercury/datetime_input.py:53
↓ 3 callersFunction_normalize_value
(value: str | None, min_value: str, max_value: str)
mercury/time.py:51
next →1–100 of 801, ranked by callers