Skip to content

Commit 217fded

Browse files
committed
Improved documentation
1 parent db05858 commit 217fded

13 files changed

+105
-12
lines changed

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -14,36 +14,36 @@ Launch the Jupyter notebook with `jupyter notebook` or Jupyter lab with `jupyter
1414

1515
**Code execution and variable display**:
1616

17-
![Basic code execution](code_exec.gif)
17+
![Basic code execution](docs/source/code_exec.gif)
1818

1919
**Output streams**:
2020

21-
![Streams](streams.gif)
21+
![Streams](docs/source/streams.gif)
2222

2323
**Input streams**:
2424

25-
![Input](input.gif)
25+
![Input](docs/source/input.gif)
2626

2727
**Error handling**:
2828

29-
![Erro handling](error.gif)
29+
![Erro handling](docs/source/error.gif)
3030

3131
**Inspect**:
3232

33-
![Inspect](inspect.gif)
33+
![Inspect](docs/source/inspect.gif)
3434

3535
**Code completion**:
3636

37-
![Completion](code_completion.gif)
37+
![Completion](docs/source/code_completion.gif)
3838

3939
**Rich display**:
4040

41-
![Rich display](rich_disp.gif)
41+
![Rich display](docs/source/rich_disp.gif)
4242

4343
**And of course widgets**:
4444

45-
![Widgets](widgets.gif)
46-
![Widgets binary](binary.gif)
45+
![Widgets](docs/source/widgets.gif)
46+
![Widgets binary](docs/source/binary.gif)
4747

4848

4949
## Installation

binary.gif docs/source/binary.gif

File renamed without changes.
File renamed without changes.
File renamed without changes.

error.gif docs/source/error.gif

File renamed without changes.

docs/source/index.rst

+10-1
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
.. image:: xeus-python.svg
99
:alt: xeus-python
1010

11-
xeus-python is a Jupyter kernel for Python based on the C++ implementation of the Jupyter protocol xeus.
1211

1312
Introduction
1413
------------
1514

15+
``xeus-python`` is a Jupyter kernel for Python based on the native implementation of the Jupyter protocol
16+
xeus_.
1617

1718
Licensing
1819
---------
@@ -28,3 +29,11 @@ This software is licensed under the BSD-3-Clause license. See the LICENSE file f
2829
:maxdepth: 2
2930

3031
installation
32+
33+
.. toctree::
34+
:caption: USAGE
35+
:maxdepth: 2
36+
37+
usage
38+
39+
.. _xeus: https://github.com/QuantStack/xeus

input.gif docs/source/input.gif

File renamed without changes.
File renamed without changes.

docs/source/installation.rst

+22-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,25 @@
2121
Installation
2222
============
2323

24-
From source with cmake
25-
----------------------
24+
With Conda
25+
----------
26+
27+
`xeus-python` has been packaged for the conda package manager.
28+
29+
To ensure that the installation works, it is preferable to install `xeus-python` in a fresh conda environment.
30+
It is also needed to use a miniconda_ installation because with the full anaconda_ you may have a conflict with
31+
the `zeromq` library which is already installed in the anaconda distribution.
32+
33+
34+
The safest usage is to create an environment named `xeus-python` with your miniconda installation
35+
36+
.. code::
37+
38+
conda create -n xeus-python
39+
conda activate xeus-python # Or `source activate xeus-python` for conda < 4.6
40+
41+
From Source
42+
-----------
2643

2744
You can install ``xeus-python`` from source with cmake. This requires that you have all the dependencies installed in the same prefix.
2845

@@ -42,3 +59,6 @@ On Windows platforms, from the source directory:
4259
cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=/path/to/prefix ..
4360
nmake
4461
nmake install
62+
63+
.. _miniconda: https://conda.io/miniconda.html
64+
.. _anaconda: https://www.anaconda.com
File renamed without changes.
File renamed without changes.

docs/source/usage.rst

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
.. Copyright (c) 2017, Martin Renou, Johan Mabille, Sylvain Corlay and
2+
Wolf Vollprecht
3+
4+
Distributed under the terms of the BSD 3-Clause License.
5+
6+
The full license is in the file LICENSE, distributed with this software.
7+
8+
Usage
9+
=====
10+
11+
Launch the Jupyter notebook with `jupyter notebook` or Jupyter lab with `jupyter lab` and launch
12+
a new Python notebook by selecting the **xpython** kernel.
13+
14+
Code execution and variable display
15+
-----------------------------------
16+
17+
.. image:: code_exec.gif
18+
:alt: basic_code_execution
19+
20+
Output streams
21+
--------------
22+
23+
.. image:: streams.gif
24+
:alt: streams
25+
26+
Input streams
27+
-------------
28+
29+
.. image:: input.gif
30+
:alt: input
31+
32+
Error handling
33+
--------------
34+
35+
.. image:: error.gif
36+
:alt: error_handling
37+
38+
Inspect
39+
-------
40+
41+
.. image:: inspect.gif
42+
:alt: inspect
43+
44+
Code completion
45+
---------------
46+
47+
.. image:: code_completion.gif
48+
:alt: code_completion
49+
50+
Rich display
51+
------------
52+
53+
.. image:: rich_disp.gif
54+
:alt: rich_display
55+
56+
And of course widgets
57+
---------------------
58+
59+
.. image:: widgets.gif
60+
:alt: widgets
61+
62+
.. image:: binary.gif
63+
:alt: widgets_binary
64+
File renamed without changes.

0 commit comments

Comments
 (0)