Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enrich Docs with Usage #28

Merged
merged 14 commits into from
Dec 1, 2019
12 changes: 12 additions & 0 deletions docs/api/hl.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. _hl_api:

High Level API
==============

.. automethod:: jupyter_kernel_mgmt.hl.start_kernel_async
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: I'd like to document these without referring to the hl module, e.g. jupyter_kernel_mgmt.start_kernel_async. That's effectively an implementation detail.

Copy link
Contributor Author

@echarles echarles Dec 1, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tried to define a currentmodule like in the othe rst files but I receive for the methods the following warning and at the end, the methods are not generated.

WARNING: don't know which module to import for autodocumenting 'start_kernel_async' (try placing a "module" or "currentmodule" directive in the document, or giving an explicit module name)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried with other configuration, but not sure how sphynx handles the top level methods instead of the class methods.


.. autoclass:: jupyter_kernel_mgmt.hl.run_kernel_async

.. automethod:: jupyter_kernel_mgmt.hl.start_kernel_blocking

.. automethod:: jupyter_kernel_mgmt.hl.run_kernel_blocking
1 change: 1 addition & 0 deletions docs/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Kernel Management APIs
.. toctree::
:maxdepth: 2

hl
finder
providers
launchers
Expand Down
5 changes: 3 additions & 2 deletions docs/environment.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: jup_kernel_mgmt
name: jk_mgmt_docs
channels:
- conda-forge
dependencies:
- pyzmq
- python==3.5
- python==3.7
- traitlets>=4.1
- jupyer_client
- jupyter_core
- sphinx>=1.3.6
- sphinx_rtd_theme
Loading