Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcfe9ebc

Browse files
rikedypxpqz
authored andcommitted
documentation
1 parentb53f1d4 commitcfe9ebc

File tree

9 files changed

+460
-0
lines changed

9 files changed

+460
-0
lines changed

‎docs/assets/apl385.ttf‎

207 KB
Binary file not shown.

‎docs/css/main.css‎

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
@font-face {
2+
font-family: APL;
3+
src:local("APL385 Unicode"),url("../assets/apl385.ttf");
4+
}
5+
.language-APL {
6+
font-family: APL!important;
7+
line-height:1.2em!important;
8+
}
9+
code {
10+
font-family: APL;
11+
font-size:1em!important;
12+
padding-left:0em!important;
13+
padding-right:0em!important;
14+
}
15+
.md-logo>img{
16+
width:7rem!important;
17+
height:1.2rem!important;
18+
}
19+
@media screenand (max-width:76.1875em) {
20+
.md-logo>img{
21+
width:10rem!important;
22+
height:1.8rem!important;
23+
}
24+
}
25+
td:first-child {
26+
white-space: nowrap;
27+
}
28+
table.scrollable {
29+
display:block;
30+
overflow-x: auto;
31+
white-space: nowrap;
32+
}
33+
/* Custom colors */
34+
:root {
35+
--md-primary-fg-color:#ED7F00;
36+
--md-primary-fg-color--dark:#563336;
37+
--md-default-bg-color:#F8F8F8;
38+
}
39+
/* Code copy only input (see CONTRIBUTING.md) */
40+
pre+pre>button,pre+hr {
41+
display: none!important;
42+
}
43+
pre>code {
44+
padding-bottom:1em!important;
45+
}
46+
hr+pre>button {
47+
top:-0.2em!important;
48+
}
49+
pre+pre,hr+pre {
50+
margin-top:-1.8em!important;
51+
}
52+
pre+pre>code,hr+pre>code {
53+
padding-top:0.2em!important;
54+
}

‎docs/img/dyalog-white.svg‎

Lines changed: 198 additions & 0 deletions
Loading

‎docs/img/favicon-32.png‎

1.26 KB
Loading

‎docs/index.md‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#About
2+
3+
##What are Jupyter notebooks?
4+
A Jupyter notebook document combines an interactive coding session with narrative text according to[Donald Knuth's*literate programming*](https://en.wikipedia.org/wiki/Literate_programming) paradigm.
5+
6+
This is a nice format for teaching APL, explaining algorithms, and sharing ideas. The consumer of a notebook can experiment with the code, and make changes to the text and republish the notebook.
7+
8+
##What is the Dyalog Jupyter kernel?
9+
Jupyter originated as a system for use with the**Julia**,**Python** and**R** programming languages (**JuPy**te**R**). To use the system with other programming languages, an interface between the Jupyter system and the language system (compiler, interpreter and what have you) is required. This interface is the language kernel.
10+
11+
##How do I use Jupyter notebooks?
12+
Jupyter notebook documents can be used in the following ways:
13+
14+
- You can[install](./install.md) the Jupyter system locally on your machine to write and interactively use notebooks - this means that you can edit the text and execute the code examples within the notebooks.
15+
- View the notebooks and execute the code[online](./online.md) in a dedicated sandboxed environment.
16+
- View or share the notebook as a static document, for example using[nbviewer](http://nbviewer.jupyter.org/).
17+
- Export notebooks to widely supported formats, such as HTML or PDF, in[local offline usage](./install.md) or in[Binder](./online.md#using-binder).
18+
19+
> Open the *File* menu, click on *Download as* and select format. Note that some target formats may require installation of third party tools.

‎docs/install.md‎

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
#Install and use locally
2+
3+
##Installing the Dyalog Jupyter kernel
4+
**Dyalog version 15.0 or later** and**Python version 3.X**, and the**jupyter** Python package must be installed in order to use the Dyalog Jupyter kernel.
5+
6+
1. Go to[the python website](https://www.python.org/downloads/) to download and install Python on your system. Linux typically comes with Python already installed.
7+
8+
If you need to manage multiple python versions, we recommend [pyenv](https://github.com/pyenv/pyenv).
9+
10+
1. Install[Jupyter](https://jupyter.org/) from a command line or PowerShell terminal.
11+
12+
`pip install jupyter`
13+
14+
1. Download the Dyalog Jupyter kernel repository as a zip: Click[here](https://github.com/Dyalog/dyalog-jupyter-kernel/archive/master.zip) to do so.
15+
1. After downloading, extract the contents and open the*dyalog-jupyter-kernel-master* directory.
16+
1. Run the following (it will have little visual effect, if any):
17+
18+
Windows: `install.bat`
19+
20+
Linux and macOS: `install.sh`
21+
22+
##Run Jupyter Notebook
23+
Use a command line or PowerShell terminal.
24+
25+
Go to the directory which contains your notebooks:
26+
27+
```
28+
cd /path/to/my/notebooks
29+
```
30+
31+
Then start the Jupyter notebook system:
32+
33+
```
34+
jupyter notebook
35+
```
36+
37+
Jupyter Notebook uses a web interface. It has a drop-down button labeled*New▾* where you can choose to create a new Dyalog APL notebook. You can also navigate to and click on any existing notebook (a file with the`.ipynb` extension) to open it.
38+
39+
##Troubleshooting
40+
41+
###Python is not found
42+
>If you get the message
43+
>```
44+
> python : The term 'python' is not recognized as the name of a cmdlet, function, script file, or operable program.
45+
> ```
46+
> Run the installer again. Make sure to tick **Add Python to environment variables**
47+
48+
### Cannot assign requsted address
49+
> If you get the message
50+
> `OSError: [Errno 99] Cannot assign requested address`
51+
> try:
52+
> `jupyter-notebook --ip=0.0.0.0 --port=8080`
53+
> or some other port number.
54+
55+
## Entering APL characters
56+
57+
You can get an APL language bar and enable key-bindings and character compositions using just a [a bookmarklet](https://abrudz.github.io/lb/apl) (a browser bookmark that contains commands which add new features to the browser). After adding the bookmarklet to your language bar, and opening a Jupyter notebook document in your browser, click on the bookmarklet. You can now insert APL characters in three ways:
58+
59+
1. Click a symbol on the language bar.
60+
1. Type *Backtick* (`` ` ``) and then the associated symbol (hover over symbols on the language bar to see associations), e.g. *Backtick*+*r* makes `⍴` and *Backtick*+*Shift*+*e* makes `⍷`.
61+
1. Type two symbols which roughly make up the APL symbol, then press the *Tab* key to combine them. The two symbols are chosen to be easy to guess according to one of the following systems:
62+
1. The symbols roughly make up the APL symbol when overlaid. For example, `O-` *Tab* makes `⊖` and `A|`*Tab* makes `⍋`.
63+
1. The symbols roughly make up the APL symbol when juxtaposed. For example, `<>` *Tab* makes `⋄` and `[]` *Tab* makes `⎕`
64+
1. The symbols are identical, and are visually similar to the APL symbol. For example, `ee` makes `∊` and `xx` makes `×`.

‎docs/online.md‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#Use without installing anything
2+
Jupyter notebooks can be viewed and interacted with online in a sandboxed environment.
3+
4+
##Using TryAPL
5+
1. Click on[TryAPL](https://tryapl.org/)'s**Learn** tab.
6+
7+
1. Select tutorial (or enter the URL of an online Jupyter notebook document.<sup>Coming soon!</sup>)
8+
9+
1. Click*Next* to proceed through the tutorial steps.
10+
11+
1. At any time, you may click on APL expressions in the tutorial pane to re-insert them in the session pane, or press the up arrow key to recall previous statements.
12+
13+
##Using Binder
14+
1. Add a Dockerfile to your Git repository (with the name Dockerfile) which uses the following template:
15+
16+
```Dockerfile
17+
FROM rikedyp/dyalog-jupyter-binder:49 # This Docker container is a Dyalog Jupyter environment
18+
COPY ./NotebookFolder/ ${HOME} # NotebookFolder is a folder containing notebooks
19+
ADD ./MyNotebook.ipynb ${HOME} # MyNotebook.ipynb is an individual notebook
20+
```
21+
22+
1. Go to[mybinder.org](https://mybinder.org) and paste your repository URL
23+
1. Click the`launch` button
24+
25+
If you are not already able to enter APL characters, try[the bookmarklet](./install.md#entering-apl-characters).

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp