Skip to content

Commit

Permalink
Remove ipython directive and use altair-plot:: directive with `:out…
Browse files Browse the repository at this point in the history
…put: repr`
  • Loading branch information
jonmmease committed Jun 16, 2023
1 parent 5c8196c commit be59e62
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
"sphinxext.schematable",
"sphinx_copybutton",
"sphinx_design",
'IPython.sphinxext.ipython_console_highlighting',
'IPython.sphinxext.ipython_directive'
]

altair_plot_links = {"editor": True, "source": False, "export": False}
Expand Down
3 changes: 2 additions & 1 deletion doc/user_guide/transform/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ First, install VegaFusion with the embed extras enabled.
Then create an Altair chart and call the :meth:`~Chart.transformed_data` method
to extract a pandas DataFrame containing the transformed data.

.. ipython:: python
.. altair-plot::
:output: repr

import altair as alt
from vega_datasets import data
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ doc = [
"geopandas",
"myst-parser",
"sphinx_copybutton",
"sphinx-design",
"ipython"
"sphinx-design"
]

[tool.hatch.version]
Expand Down

0 comments on commit be59e62

Please sign in to comment.