semvec/pypi-packages huggingface dataset:
feffery-leaflet-components 0.2.4
Best implementation of Leaflet in Plotly Dash.
License: MIT

<p align="center">
	<img src="./flc-logo.svg" height=200></img>
</p>
<h1 align="center">feffery-leaflet-components</h1>
<div align="center">


[![GitHub](https://img.shields.io/github/license/plotly/dash.svg?color=dark-green)](https://github.com/plotly/dash/blob/master/LICENSE)
[![PyPI](https://img.shields.io/pypi/v/feffery-leaflet-components.svg?color=dark-green)](https://pypi.org/project/feffery-leaflet-components/)
[![Downloads](https://pepy.tech/badge/feffery-leaflet-components)](https://pepy.tech/project/feffery-leaflet-components)
[![Downloads](https://pepy.tech/badge/feffery-leaflet-components/month)](https://pepy.tech/project/feffery-leaflet-components)

</div>

`feffery-components`计划子项目，`Plotly Dash`第三方组件库，基于`Leaflet`，将更好用的地图交互功能及可视化组件引入`Dash`的世界🥳，最新版本：`0.2.3`（2024-08-27）

## Dash版本兼容性说明

| flc版本 | 适用Dash版本 |
| :-----: | :----------: |
| >=0.2.0 |   >=3.0.0    |
| <0.2.0  |    <3.0.0    |

## 1 最新版本安装方式

```bash
pip install feffery-leaflet-components -U
```

## 2 最新预发布版本安装方式

> [!NOTE]
> 最新预发布版本（2025-06-27）：`0.2.0rc3`

```bash
pip install feffery-leaflet-components --pre -U
```

## 3 静态资源 CDN 加速方法

```Python
# 非debug模式下对Dash()传入参数serve_locally=False会强制浏览器端从unpkg cdn加载各个依赖的
# xxx.min.js等静态资源，从而避免占用服务器带宽，适合中小型站点加速访问
app = dash.Dash(serve_locally=False)
```

## 4 在线文档

<a href='http://flc.feffery.tech/' target='_blank'>文档地址</a>
sixelmath 0.1
Render LaTeX math and Sympy expressions to Sixel Terminal Graphics. Suuports any Math-enabled font, no LaTeX installation required.
License: MIT
Requires Python: >=3.9
Keywords: LaTeX, math, sympy, sixel, terminal

# sixelmath

Render LaTeX Math expressions or Sympy objects in the terminal using sixel graphics.
Math rendering is done using [ziamath](https://ziamath.readthedocs.io), a pure-Python LaTeX math renderer that does not require a Latex installation.
Any math-enabled truetype/opentype font may be used; STIXTwoMath-Regular is included and used by default.
Also uses [cairosvg](https://pypi.org/project/CairoSVG/), [timg](https://pypi.org/project/timg/), and [Pillow](https://pypi.org/project/pillow/).

See list of sixel-supported terminal emulators [here](https://www.arewesixelyet.com).


## Usage

### Command Line

Render a LaTeX expression:

    sixelmath "\frac{1}{1+x}"

Options include:

* '-s': Font size in points
* '-f': Path to font file (must include MATH table)
* '-c': Color as a supported named color, or hex value such as `#FFFFFF`
* '-b': Background color as a supported named color, or hex value such as `#FFFFFF`
* '-m': Margin width in pixels

In POSIX environments, the font and background color are detected automatically if not manually specified.


### Python

To render LaTeX from Python code:

    from sixelmath import sixelmath
    sixelmath(r'\frac{1}{1+x}')
    
Keyword arguments may be passed to `sixelmath` to change options:

* `color`: Font color. A named terminal color like 'white', or RGB hex color such as `#FFFFFF`
* `bgcolor`: Background color.
* `font`: Path to a TTF or OTF font file. Must contain a MATH table. STIXTwoMath-Regular is used by default.
* `fontsize`: Font size in pixels
* `margin`: Pixel margin around the euqation


### Sympy

Import the `sixelmath.sympysixel` module to install a Sympy Printer that automatically displays Sympy expressions as sixel graphics.

    import sympy
    from sixelmath import sympysixel
    sympy.sympify('A * exp(-x^2)')


To change display format, use `sixelmath.sixel_defaults`, with the same keyword arguments listed above for `sixelmath`.
The sixel printer may be turned off using `sympysixel.disable()` and turned on with `sympysixel.enable()`.