Skip to content

Commit 4b231ab

Browse files
authored
Merge pull request #45 from tdhopper/dependabot/uv/python-dependencies-fb66d3c3d4
2 parents 7bd8f07 + f811043 commit 4b231ab

3 files changed

Lines changed: 234 additions & 80 deletions

File tree

‎Examples.ipynb‎

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"from plotnine import *\n",
1717
"import numpy as np\n",
1818
"\n",
19-
"from plotly import figure_factory\n",
2019
"from plotly import graph_objects\n",
2120
"import plotly.express as px\n",
2221
"from IPython.core.magic import Magics, magics_class, cell_magic\n",
@@ -2801,16 +2800,19 @@
28012800
},
28022801
"outputs": [],
28032802
"source": [
2804-
"fig = figure_factory.create_distplot(\n",
2805-
" [diamonds[\"depth\"][diamonds[\"cut\"] == c].values \n",
2806-
" for c in diamonds.cut.unique()\n",
2807-
" ],\n",
2808-
" diamonds.cut.unique(),\n",
2809-
" show_hist=False,\n",
2810-
" show_rug=False,\n",
2811-
")\n",
2812-
"for d in fig[\"data\"]:\n",
2813-
" d.update({\"fill\": \"tozeroy\"})\n",
2803+
"from scipy.stats import gaussian_kde\n",
2804+
"\n",
2805+
"fig = graph_objects.Figure()\n",
2806+
"for cut in diamonds[\"cut\"].unique():\n",
2807+
" depth = diamonds.loc[\n",
2808+
" diamonds[\"cut\"] == cut, \"depth\"]\n",
2809+
" grid = np.linspace(\n",
2810+
" depth.min(), depth.max(),\n",
2811+
" 500, endpoint=False)\n",
2812+
" fig.add_trace(graph_objects.Scatter(\n",
2813+
" x=grid, y=gaussian_kde(depth)(grid),\n",
2814+
" mode=\"lines\", fill=\"tozeroy\",\n",
2815+
" name=cut))\n",
28142816
"Image(fig.to_image(format=\"png\", width=750, height=750))"
28152817
]
28162818
},

‎pyproject.toml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ requires-python = ">=3.11"
77

88
dependencies = [
99
# Core Jupyter/IPython
10-
"ipython>=8.12",
10+
"ipython>=9.17.1",
1111
"notebook>=7.6.2",
1212
"jupyter>=1.0",
1313

@@ -19,18 +19,18 @@ dependencies = [
1919
"seaborn>=0.13",
2020
"plotnine>=0.15.8",
2121
"lets-plot>=4.11",
22-
"plotly>=5.24",
22+
"plotly>=7.0.0",
2323
"altair>=5.0",
2424
"vl-convert-python>=1.0", # Required for Altair PNG export
2525
"hvplot>=0.12", # Bokeh via the pandas .hvplot accessor
2626

2727
# Image rendering
28-
"kaleido>=1.0", # v1+ requires Chrome
28+
"kaleido>=1.4.0", # v1+ requires Chrome
2929
"pillow>=10.0",
30-
"selenium>=4.47.0", # Required for Bokeh PNG export
30+
"selenium>=4.48.0", # Required for Bokeh PNG export
3131

3232
# Statistical tools
33-
"statsmodels>=0.14.6",
33+
"statsmodels>=0.15.0",
3434
"scikit-misc>=0.3",
3535

3636
# R integration
@@ -47,7 +47,7 @@ dependencies = [
4747
"simplegeneric>=0.8",
4848

4949
# Cloud (if needed for deployment)
50-
"boto3>=1.43.78",
50+
"boto3>=1.43.89",
5151

5252
# Testing
5353
"pytest>=7.4",

0 commit comments

Comments
 (0)