Skip to content

Commit 9f097a3

Browse files
committed
Latest notebook versions
1 parent 5a71d3b commit 9f097a3

File tree

2 files changed

+20
-15
lines changed

2 files changed

+20
-15
lines changed

JupyterKernelForLogtalkOverview.ipynb

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"text/plain": [
3434
"Logtalk 3.71.0-b01\n",
3535
"SWI-Prolog 9.1.16\n",
36-
"Logtalk Jupyter kernel 0.7.0-beta"
36+
"Logtalk Jupyter kernel 0.7.1-beta"
3737
]
3838
},
3939
"metadata": {},
@@ -937,14 +937,14 @@
937937
"data": {
938938
"text/plain": [
939939
"% \n",
940-
"% tests started at 2023-09-26, 15:45:51\n",
940+
"% tests started at 2023-09-26, 17:26:50\n",
941941
"% \n",
942942
"% running tests from object tests\n",
943943
"% file: /Users/pmoura/logtalk/examples/ack/tests.lgt\n",
944944
"% \n",
945-
"% ack_1: success (in 0.001745000 seconds)\n",
946-
"% ack_2: success (in 0.062015000 seconds)\n",
947-
"% ack_3: success (in 0.264898000 seconds)\n",
945+
"% ack_1: success (in 0.001783000 seconds)\n",
946+
"% ack_2: success (in 0.065879000 seconds)\n",
947+
"% ack_3: success (in 0.272009000 seconds)\n",
948948
"% \n",
949949
"% 3 tests: 0 skipped, 3 passed, 0 failed (0 flaky)\n",
950950
"% completed tests from object tests\n",
@@ -959,7 +959,7 @@
959959
"% 1 out of 1 entity covered, 100.000000% entity coverage\n",
960960
"% 3 out of 3 clauses covered, 100.000000% clause coverage\n",
961961
"% \n",
962-
"% tests ended at 2023-09-26, 15:45:52\n",
962+
"% tests ended at 2023-09-26, 17:26:51\n",
963963
"% "
964964
]
965965
},
@@ -1109,7 +1109,6 @@
11091109
]
11101110
},
11111111
{
1112-
"attachments": {},
11131112
"cell_type": "markdown",
11141113
"id": "4f70dbad",
11151114
"metadata": {},
@@ -1321,7 +1320,6 @@
13211320
]
13221321
},
13231322
{
1324-
"attachments": {},
13251323
"cell_type": "markdown",
13261324
"id": "8cfaa314",
13271325
"metadata": {},

LogtalkTutorial.ipynb

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"cells": [
33
{
4-
"attachments": {},
54
"cell_type": "markdown",
65
"id": "1ccf1b85-e8e1-445c-9a1c-307c615c6152",
76
"metadata": {},
@@ -34,7 +33,7 @@
3433
"text/plain": [
3534
"Logtalk 3.71.0-b01\n",
3635
"SWI-Prolog 9.1.16\n",
37-
"Logtalk Jupyter kernel 0.7.0-beta"
36+
"Logtalk Jupyter kernel 0.7.1-beta"
3837
]
3938
},
4039
"metadata": {},
@@ -580,7 +579,7 @@
580579
"id": "b1abe300-f4ae-4d85-a86a-52055f382538",
581580
"metadata": {},
582581
"source": [
583-
"A message is valid if the corresponding predicate is declared (and the sender is within scope) but it will fail, rather then throwing an error, if the predicate is not defined. This is called the _closed-world assumption_. For example, consider the following object, saved in a `foo.lgt` file:"
582+
"A message is valid if the corresponding predicate is _declared_ (and the sender is within scope) but it will fail, rather then throwing an error, if the predicate is not _defined_. This is called the _closed-world assumption_. For example, consider the following object, saved in a `foo.lgt` file:"
584583
]
585584
},
586585
{
@@ -618,7 +617,7 @@
618617
"id": "dba53531-2c93-42e3-ba42-66aa044c5d6f",
619618
"metadata": {},
620619
"source": [
621-
"Loading the file and trying to call the `bar/0` predicate fails as expected. Note that this is different from calling an _unknown_ predicate, which results in an error:"
620+
"Loading the file and trying to call the `bar/0` predicate fails as expected:"
622621
]
623622
},
624623
{
@@ -634,15 +633,23 @@
634633
{
635634
"data": {
636635
"text/plain": [
637-
"\u001b[1;31mfalse"
636+
"\u001b[1mtrue"
638637
]
639638
},
640639
"metadata": {},
641640
"output_type": "display_data"
642641
}
643642
],
644643
"source": [
645-
"foo::bar."
644+
"\\+ foo::bar."
645+
]
646+
},
647+
{
648+
"cell_type": "markdown",
649+
"id": "24b0beac",
650+
"metadata": {},
651+
"source": [
652+
"Note that this is different from calling an _unknown_ predicate, which results in an error:"
646653
]
647654
},
648655
{
@@ -1419,7 +1426,7 @@
14191426
{
14201427
"data": {
14211428
"text/plain": [
1422-
"call: list <-- member(_59438,[1,2,3]) from user\n",
1429+
"call: list <-- member(_59586,[1,2,3]) from user\n",
14231430
"exit: list <-- member(1,[1,2,3]) from user\n",
14241431
"exit: list <-- member(2,[1,2,3]) from user\n",
14251432
"exit: list <-- member(3,[1,2,3]) from user"

0 commit comments

Comments
 (0)