nbsphinx-3d-plotΒΆ

This .ipynb file should render properly and show a 3D Plot.

Reference: https://github.com/rtfd/readthedocs.org/issues/4367


Requirements file used (note that we need to install s specific version of sphinx-rtd-theme):

1
2
3
4
5
6
7
8
9
sphinx-autorun

# nbsphinx 3d plot requirements
git+https://github.com/plotly/plotly.py#egg=plotly
ipywidgets
nbsphinx
jupyter_sphinx

git+https://github.com/rtfd/sphinx_rtd_theme#egg=sphinx-rtd-theme

All packages installed in the virtualenv used to generate this documentation (pip freeze):


alabaster==0.7.12
attrs==19.1.0
Babel==2.6.0
backcall==0.1.0
bleach==3.1.0
certifi==2019.3.9
chardet==3.0.4
commonmark==0.8.1
decorator==4.4.0
defusedxml==0.5.0
docutils==0.14
entrypoints==0.3
future==0.17.1
idna==2.8
imagesize==1.1.0
ipykernel==5.1.0
ipython==7.4.0
ipython-genutils==0.2.0
ipywidgets==7.4.2
jedi==0.13.3
Jinja2==2.10.1
jsonschema==3.0.1
jupyter-client==5.2.4
jupyter-core==4.4.0
jupyter-sphinx==0.1.4
MarkupSafe==1.1.1
mistune==0.8.4
mock==1.0.1
nbconvert==5.4.1
nbformat==4.4.0
nbsphinx==0.4.2
notebook==5.7.8
packaging==19.0
pandocfilters==1.4.2
parso==0.4.0
pexpect==4.7.0
pickleshare==0.7.5
Pillow==5.4.1
plotly==3.7.1+4.gbb5c998a.dirty
prometheus-client==0.6.0
prompt-toolkit==2.0.9
ptyprocess==0.6.0
Pygments==2.3.1
pyparsing==2.4.0
pyrsistent==0.14.11
python-dateutil==2.8.0
pytz==2019.1
pyzmq==18.0.1
readthedocs-sphinx-ext==0.5.17
recommonmark==0.5.0
requests==2.21.0
retrying==1.3.3
Send2Trash==1.5.0
six==1.12.0
snowballstemmer==1.2.1
Sphinx==1.8.5
sphinx-autorun==1.1.0
sphinx-rtd-theme==0.4.3
sphinxcontrib-websupport==1.1.0
terminado==0.8.2
testpath==0.4.2
tornado==6.0.2
traitlets==4.3.2
urllib3==1.24.1
wcwidth==0.1.7
webencodings==0.5.1
widgetsnbextension==3.4.2
>>> import os
>>> os.system('pip freeze')
0

Sphinx configuration file to build this docs (see full file),

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
# -*- coding: utf-8 -*-

# Default settings
project = 'Test Builds'
extensions = [
    'sphinx_autorun',
]

# Include all your settings here
html_theme = 'sphinx_rtd_theme'

extensions += [
    'nbsphinx',
    'jupyter_sphinx.embed_widgets',
]






>>> # Build at
>>> import datetime
>>> datetime.datetime.utcnow()  # UTC
datetime.datetime(2019, 4, 10, 14, 16, 21, 793000)