File tree Expand file tree Collapse file tree 7 files changed +311
-235
lines changed Expand file tree Collapse file tree 7 files changed +311
-235
lines changed Original file line number Diff line number Diff line change 1
- API docs
2
- ========
1
+ API reference
2
+ =============
3
3
4
- Note that ipyvolume.easy and ipyvolume.sheet are imported in the ipysheet namepsace, to you can access ipysheet.sheet instead of ipyvolume.easy.sheet.
4
+ Note that everything is accessible from the ipysheet namespace.
5
+ For example, you can do ``from ipysheet import sheet, from_dataframe ``
5
6
6
7
7
8
ipysheet.easy
8
- ---------------
9
+ -------------
9
10
10
11
.. automodule :: ipysheet.easy
11
- :members:
12
+ :members:
12
13
:undoc-members:
13
14
:show-inheritance:
14
15
16
+
17
+ ipysheet.pandas_loader
18
+ ----------------------
19
+
20
+ .. automodule :: ipysheet.pandas_loader
21
+ :members: from_dataframe, to_dataframe
22
+ :undoc-members:
23
+ :show-inheritance:
24
+
25
+
26
+ ipysheet.numpy_loader
27
+ ---------------------
28
+
29
+ .. automodule :: ipysheet.numpy_loader
30
+ :members: from_array, to_array
31
+ :undoc-members:
32
+ :show-inheritance:
33
+
34
+
15
35
ipysheet.sheet
16
- -----------------
36
+ --------------
17
37
18
38
.. automodule :: ipysheet.sheet
19
39
:members: Sheet, Cell, Range
20
40
:undoc-members:
21
41
:show-inheritance:
22
-
Original file line number Diff line number Diff line change 28
28
#
29
29
# needs_sphinx = '1.0'
30
30
31
+ from ipysheet ._version import __version__ , __version_tuple__
32
+
31
33
# Add any Sphinx extension module names here, as strings. They can be
32
34
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
33
35
# ones.
39
41
'sphinx.ext.ifconfig' ,
40
42
'sphinx.ext.viewcode' ,
41
43
'nbsphinx' ,
42
- 'jupyter_sphinx.embed_widgets'
44
+ 'jupyter_sphinx.embed_widgets' ,
45
+ 'sphinx.ext.napoleon'
43
46
]
44
47
45
48
# Add any paths that contain templates here, relative to this directory.
64
67
# built documents.
65
68
#
66
69
# The short X.Y version.
67
- version = '0.1'
70
+ version = '.' . join ([ str ( __version_tuple__ [ 0 ]), str ( __version_tuple__ [ 1 ])])
68
71
# The full version, including alpha/beta/rc tags.
69
- release = '0.1'
72
+ release = __version__
70
73
71
74
# The language for content autogenerated by Sphinx. Refer to documentation
72
75
# for a list of supported languages.
103
106
# Add any paths that contain custom static files (such as style sheets) here,
104
107
# relative to this directory. They are copied after the builtin static files,
105
108
# so a file named "default.css" will overwrite the builtin "default.css".
106
- html_static_path = ['_static' ]
109
+ # html_static_path = ['_static']
107
110
108
111
# Custom sidebar templates, must be a dictionary that maps document names
109
112
# to template names.
Original file line number Diff line number Diff line change 467
467
"nbsphinx-toctree" : {}
468
468
},
469
469
"source" : [
470
- " [api ](api.rst)"
470
+ " [API Reference ](api.rst)"
471
471
]
472
472
}
473
473
],
488
488
"name" : " python" ,
489
489
"nbconvert_exporter" : " python" ,
490
490
"pygments_lexer" : " ipython3" ,
491
- "version" : " 3.7.2 "
491
+ "version" : " 3.7.1 "
492
492
},
493
493
"widgets" : {
494
494
"application/vnd.jupyter.widget-state+json" : {
Original file line number Diff line number Diff line change
1
+ # Copyright (c) Jupyter Development Team.
2
+ # Distributed under the terms of the Modified BSD License.
3
+
4
+ # This file is copied from ipywidgets
5
+
6
+
7
+ def doc_subst (snippets ):
8
+ """ Substitute format strings in class or function docstring """
9
+ def decorator (cls ):
10
+ # Strip the snippets to avoid trailing new lines and whitespace
11
+ stripped_snippets = {
12
+ key : snippet .strip () for (key , snippet ) in snippets .items ()
13
+ }
14
+ cls .__doc__ = cls .__doc__ .format (** stripped_snippets )
15
+ return cls
16
+ return decorator
You can’t perform that action at this time.
0 commit comments