Skip to content

Commit 5bab96a

Browse files
committed
Documentation
1 parent 7fa6117 commit 5bab96a

File tree

4 files changed

+57
-57
lines changed

4 files changed

+57
-57
lines changed

DEVELOPMENT.md

Whitespace-only changes.

README.md

Lines changed: 6 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
This is a [Jupyter](http://jupyter.org/) kernel for [Dyalog APL](https://www.dyalog.com/). The [wiki](https://github.com/Dyalog/dyalog-jupyter-kernel/wiki) has more details.
44

5+
For complete installation instructions from scratch on Windows, see [WINDOWS.md](WINDOWS.md) in this repository.
6+
7+
If you're a kernel developer, see [DEVELOPMENT.md](DEVELOPMENT.md) in this repository.
8+
59
## Do you have any pre-made notebook documents?
610

711
A collection of ready-made notebooks is available [here](https://github.com/Dyalog/dyalog-jupyter-notebooks).
@@ -20,7 +24,7 @@ This kernel is installable via Python's package installer, [pip](https://pip.pyp
2024
In your terminal, run the follwing command:
2125

2226
```sh
23-
pip install dyalog-jupyter-kernel[==2.0.0]
27+
pip install dyalog-jupyter-kernel[==2.0.1]
2428
```
2529

2630
After successfully installing the kernel module itself, you need to register it with your Jupyter installation, using the following terminal command:
@@ -43,58 +47,4 @@ Start Jupyter:
4347
```sh
4448
jupyter lab # or jupyter notebook
4549
```
46-
and you should now see Dyalog APL amongst your kernels. Click on the Dyalog APL icon.
47-
48-
## Build notes (kernel developer interest only)
49-
50-
Build release assets with
51-
52-
```sh
53-
python setup.py sdist bdist_wheel
54-
```
55-
56-
Built assets will end up in `dist/`, and you can instruct `pip` to install from file for testing:
57-
58-
```sh
59-
pip install dist/dyalog-jupyter-kernel-x.y.z.tar.gz
60-
```
61-
62-
Upload release assets using [twine](https://twine.readthedocs.io/en/stable/). Install `twine` with
63-
64-
```sh
65-
pip install twine
66-
```
67-
68-
Pick up the API token, and set up your `$HOME/.pypirc` file like this:
69-
70-
```
71-
[distutils]
72-
index-servers =
73-
pypi
74-
testpypi
75-
76-
[pypi]
77-
username = __token__
78-
password = pypi-A...Z # Replace with your actual PyPI API token
79-
80-
[testpypi]
81-
repository = https://test.pypi.org/legacy/
82-
username = __token__
83-
password = pypi-A...Z # Replace with your actual TestPyPI API token
84-
```
85-
86-
Use the API key as password, including the `pypi-` prefix.
87-
88-
Upload the release:
89-
90-
```sh
91-
twine upload --repository [test]pypi dist/*
92-
```
93-
94-
To install the module from the test index, use
95-
96-
```sh
97-
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple dyalog-jupyter-kernel[==2.0.0]
98-
python -m 'dyalog_kernel' install
99-
```
100-
The `--extra-index-url` argument is there so that `pip` can pick up any dependencies from the main index.
50+
and you should now see Dyalog APL amongst your kernels. Click on the Dyalog APL icon.

WINDOWS.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# A full installation, from scratch, on Windows
2+
3+
Installing, operating and maintaining a Python installation can be a bit of a chore, especially if you're not a Python developer. If you're coming to this wanting only to use Jupyter for Dyalog APL, here are some step by step instructions for how to set up the whole tool chain (on Windows) from scratch.
4+
5+
If you're a Python developer, or if you're already using a "canned" Python distribution, like [conda](https://docs.conda.io/en/latest/), you probably know what you're doing and can skip this document.
6+
7+
The below instructions install Jupyter and the Dyalog kernel inside a Python "virtual environment". This means that you can keep your Jupyter work separate from any other Python work, current or future. This is usually a good idea when working with Python.
8+
9+
1. Download and install the [Dyalog interpreter](https://www.dyalog.com/download-zone.htm)
10+
2. Download, and run the official [Python installer](https://www.python.org/downloads/).
11+
3. Open a PowerShell terminal. Type the following steps into the terminal window.
12+
4. Create a virtual Python environment with a name of your choosing, for example
13+
```
14+
python -m venv jupy312
15+
```
16+
5. Activate the virtual environment -- this is important:
17+
```
18+
jupy312\Scripts\activate
19+
```
20+
Your terminal prompt should change to have a `(jupy312)` prefix.
21+
6. Upgrade `pip` to the latest version:
22+
```
23+
python.exe -m pip installl --upgrade pip
24+
```
25+
7. Install `jupyterlab`:
26+
```
27+
pip install jupyterlab
28+
```
29+
8. Install the Dyalog kernel Python module:
30+
```
31+
pip install dyalog-jupyter-kernel
32+
```
33+
9. Register the kernel with Jupyter:
34+
```
35+
python -m 'dyalog_kernel' install
36+
```
37+
10. Start jupyterlab:
38+
```
39+
jupyter lab
40+
```
41+
42+
A browser window should open up with the Jupyter Lab application. Click the "Dyalog APL" symbol to open a new notebook document with the Dyalog kernel.
43+
44+
Once you're done working with Jupyter Lab, deactivate the Python environment:
45+
46+
```
47+
deactivate
48+
```
49+
50+
To start up Jupyter Lab again, you need to run `jupy312\Scripts\activate` and `jupyter lab` again.

dyalog_kernel/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""Dyalog APL Jupyter kernel"""
22

3-
__version__ = '0.911'
3+
__version__ = '2.0.1'
44

55
from .kernel import DyalogKernel

0 commit comments

Comments
 (0)