-
Notifications
You must be signed in to change notification settings - Fork 8
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
takluyver
merged 14 commits into
takluyver:master
from
datalayer-externals:docs-diagrams
Dec 1, 2019
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
8fbc0f7
first iteration to explain usages with sever and standalone
echarles d1dcabd
Merge branch 'master' into docs-diagrams
echarles 5d9f275
mardown to rst
echarles 6f6c744
kevin's comments + better sequence diagram
echarles cc29bbe
better sequence diagram
echarles 5f7f01e
more updates thx to kevin's to-the-point reviews
echarles c0cf87b
minor syntax fix
echarles 9703053
fix the building block representation
echarles 217d93b
Merge branch 'master' into docs-diagrams
echarles 2dc55bd
Merge branch 'master' into docs-diagrams
echarles aadfcbe
attempt to add the hl API
echarles 8c3f5b3
fix diagram legend for html display
echarles a83e4eb
add a hl api section
echarles cb88439
remove kernel_hl_api
echarles File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
.. autoclass:: jupyter_kernel_mgmt.hl.run_kernel_async | ||
|
||
.. automethod:: jupyter_kernel_mgmt.hl.start_kernel_blocking | ||
|
||
.. automethod:: jupyter_kernel_mgmt.hl.run_kernel_blocking |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ Kernel Management APIs | |
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
hl | ||
finder | ||
providers | ||
launchers | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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.