Skip to content

Commit 85ed39a

Browse files
committed
updated usage
1 parent 01048b0 commit 85ed39a

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

misc/kshell_launcher/README.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Create kshell terminals from a kscript
1+
# `Kshell` launcher `kscript`lets
22

33

44
Based on https://github.com/khud/sparklin which is a proof-of-concept software that includes experimental new Kotlin REPL.
@@ -14,10 +14,26 @@ You may want to add it to your `PATH` as well.
1414

1515
## Usage
1616

17-
Simply provide any kscript as argument. E.g [`krangl_example.kts`]()
18-
```
17+
Simply provide any kscript as argument. E.g [`krangl_example.kts`](https://github.com/holgerbrandl/kscript/blob/master/misc/kshell_launcher/krangl_example.kts)
18+
19+
```bash
1920
kshell_from_kscript.sh krangl_example.kts
2021
```
22+
This will launch a kshell-session will all dependencies from the kscript in the class path
23+
24+
```
25+
Preparing interactive session by resolving script dependencies...
26+
[2] import krangl.schema
27+
[3] import krangl.irisData
28+
[4] irisData.schema()
29+
DataFrame with 150 observations
30+
Sepal.Length [Dbl] 5.1, 4.9, 4.7, 4.6, 5, 5.4, 4.6, 5, 4.4, 4.9, 5.4, 4.8, 4.8, 4.3, 5.8, 5.7, 5.4,...
31+
Sepal.Width [Dbl] 3.5, 3, 3.2, 3.1, 3.6, 3.9, 3.4, 3.4, 2.9, 3.1, 3.7, 3.4, 3, 3, 4, 4.4, 3.9, 3.5...
32+
Petal.Length [Dbl] 1.4, 1.4, 1.3, 1.5, 1.4, 1.7, 1.4, 1.5, 1.4, 1.5, 1.5, 1.6, 1.4, 1.1, 1.2, 1.5, ...
33+
Petal.Width [Dbl] 0.2, 0.2, 0.2, 0.2, 0.2, 0.4, 0.3, 0.2, 0.2, 0.1, 0.2, 0.2, 0.1, 0.1, 0.2, 0.4, ...
34+
Species [Str] setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, ...
35+
[6]
36+
```
2137

2238
## Todo
2339

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@file:DependsOn("com.offbytwo:docopt:0.6.0.20150202", "log4j:log4j:1.2.14")
22
@file:DependsOn("de.mpicbg.scicomp:krangl:0.9.1")
33

4-
import krangl.flightsData
4+
import krangl.irisData
55
import krangl.schema
66

77

8-
flightsData.schema()
8+
irisData.schema()

0 commit comments

Comments
 (0)