Skip to content

Commit

Permalink
Moved imports out of user data into runPython.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPacker committed Jun 9, 2024
1 parent 2b7d0a5 commit 158b33d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion md2pptx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ except:


md2pptx_level = "4.4+"
md2pptx_date = "2 June, 2024"
md2pptx_date = "9 June, 2024"

namespaceURL = {
"mc": "http:https://schemas.openxmlformats.org/markup-compatibility/2006",
Expand Down
2 changes: 2 additions & 0 deletions runPython.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
from pptx.chart.data import CategoryChartData
from pptx.oxml.xmlchemy import OxmlElement, serialize_for_reading
from pptx.dml.color import RGBColor
from pptx.enum.chart import XL_CHART_TYPE
from pptx.enum.chart import XL_LEGEND_POSITION

class RunPython:
def __init__(
Expand Down
4 changes: 1 addition & 3 deletions test/codetest.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ contentsplitdirn: h
* Here is a sub-bullet

``` run-python
from pptx.enum.chart import XL_CHART_TYPE
from pptx.enum.chart import XL_LEGEND_POSITION
# Read chart data from CSV file
chart_csv = RunPython.readCSV("chartdata.csv")
Expand All @@ -24,7 +22,7 @@ chart1 = RunPython.makeChart(slide,
renderingRectangle,
chart_data,
"Hello World",
XL_LEGEND_POSITION.RIGHT)
XL_LEGEND_POSITION.BOTTOM)
```
Expand Down
Binary file modified test/codetest.pptx
Binary file not shown.

0 comments on commit 158b33d

Please sign in to comment.