Skip to content

Commit 43a0fde

Browse files
Revert to simplified reflex-pyplot imports for version 0.2.1
- Update pyproject.toml to require reflex-pyplot >= 0.2.1 - Revert import statements from custom_components.reflex_pyplot back to reflex_pyplot - Update all 3 code blocks in pyplot documentation - Regenerate uv.lock with updated dependency Co-Authored-By: Alek <alek@pynecone.io>
1 parent afe1d21 commit 43a0fde

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

docs/library/graphing/other-charts/pyplot.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ components:
55

66
```python exec
77
import reflex as rx
8-
from custom_components.reflex_pyplot import pyplot
8+
from reflex_pyplot import pyplot
99
import numpy as np
1010
import random
1111
import matplotlib.pyplot as plt
@@ -32,7 +32,7 @@ To display a Matplotlib plot in your app, you can use the `pyplot` component. Pa
3232
```python demo exec
3333
import matplotlib.pyplot as plt
3434
import reflex as rx
35-
from custom_components.reflex_pyplot import pyplot
35+
from reflex_pyplot import pyplot
3636
import numpy as np
3737

3838
def create_contour_plot():
@@ -70,7 +70,7 @@ import random
7070
from typing import Literal
7171
import matplotlib.pyplot as plt
7272
import reflex as rx
73-
from custom_components.reflex_pyplot import pyplot
73+
from reflex_pyplot import pyplot
7474
import numpy as np
7575

7676

pcweb/pages/docs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from flexdown.document import Document
99

1010
# External Components
11-
from custom_components.reflex_pyplot import pyplot as pyplot
11+
from reflex_pyplot import pyplot as pyplot
1212

1313
from pcweb.flexdown import xd
1414
from pcweb.pages.docs.component import multi_docs

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dependencies = [
2020
"mistletoe>=1.2.1",
2121
"reflex-image-zoom>=0.0.2",
2222
"replicate==1.0.6",
23-
"reflex-pyplot>=0.2.0",
23+
"reflex-pyplot>=0.2.1",
2424
"reflex-enterprise==0.3.1a1",
2525
"requests>=2.32.3",
2626
"posthog==4.0.1",

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)