Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

An XML widget for interactively exploring XML in Python notebooks and Panel data apps.

NotificationsYou must be signed in to change notification settings

awesome-panel/panel-xml

Repository files navigation

Licensepy.cafe

panel-xml provides theXMLpane to display and explore XML in notebooks andPanel data apps.

panel-xml in notebook

It is based onreact-xml-viewer.

Key Features

  • Configurable Depth: Set an initial collapsible depth for better navigation.
  • Collapse/Expand Tags: Intuitively collapse or expand tags to streamline XML exploration.
  • Customizable Theme: Configure the colors and appearance with a customizable theme.

Installation

You can installpanel-xml usingpip:

pip install panel-xml

Usage

Basic XML Pane

py.cafe

panel-xml

Here’s how to create a simple XML pane using theXML widget:

importpanelaspnfrompanel_xmlimportXMLpn.extension()xml='''<ul><li>Hello</li><li>World</li></ul>'''XML(xml,depth=2).servable()

Api

Parameters

  • object (str): The XML string to display in a prettified format.
  • indent_size (int): The size of the indentation.
  • collapsible (bool): Enable collapsing/expanding tags. When collapsed, content and attributes are hidden.
  • depth (int): Whencollapsible is set toTrue, this defines the initial collapsed depth. Set it to0 for fully collapsed, or-1 for fully expanded.
  • theme (dict): A dictionary to customize the theme. See thereact-xml-viewer theme documentation for details.

XML Editor

py.cafe

Open the XML Editor to explore the features and documentation of theXML pane interactively.

Panel XML | Diagram Editor

❤️ Contributions

Contributions and co-maintainers are very welcome! Please submit issues or pull requests to theGitHub repository. Check out theDEVELOPER_GUIDE for more information.

Alternatives


Start usingpanel-xml to integrate rich, interactive XML displays directly into your Python applications!

About

An XML widget for interactively exploring XML in Python notebooks and Panel data apps.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp