Skip to content

Commit 99d85ec

Browse files
authored
Implement main logic (#5)
* Implement main logic * Only use base * isort
1 parent cac1a53 commit 99d85ec

File tree

8 files changed

+993
-3
lines changed

8 files changed

+993
-3
lines changed

docs/source/conf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
# Add any paths that contain templates here, relative to this directory.
3939
templates_path = ["_templates"]
4040

41+
# The name of the Pygments (syntax highlighting) style to use.
42+
pygments_style = "sphinx"
43+
4144
# List of patterns, relative to source directory, that match files and
4245
# directories to ignore when looking for source files.
4346
# This pattern also affects html_static_path and html_extra_path.
@@ -55,3 +58,7 @@
5558
# relative to this directory. They are copied after the builtin static files,
5659
# so a file named "default.css" will overwrite the builtin "default.css".
5760
# html_static_path = ["_static"]
61+
62+
# options for extensions
63+
plotly_include_source = True
64+
plotly_include_directive_source = True

docs/source/examples.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.. _examples:
2+
3+
Examples
4+
========
5+
6+
script
7+
~~~~~~
8+
9+
.. plotly::
10+
11+
import plotly.express as px
12+
px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16])
13+
14+
doctest
15+
~~~~~~~
16+
17+
.. plotly::
18+
19+
>>> import plotly.express as px
20+
>>> px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16])

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Welcome to sphinx-plotly-directive's documentation!
1010
:maxdepth: 2
1111
:caption: Contents:
1212

13-
13+
examples
1414

1515
Indices and tables
1616
==================

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ def get_install_requires():
3636
def get_extras_require():
3737
return {
3838
"dev": [
39+
# required by pandas
40+
"pandas",
3941
# code formatting
4042
"flake8",
4143
"isort",

0 commit comments

Comments
 (0)