Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
ProB 2 Jupyter Kernel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
ProB 2 Jupyter Kernel
Commits
2dce5c8e
Commit
2dce5c8e
authored
May 7, 2018
by
dgelessus
Browse files
Options
Downloads
Patches
Plain Diff
Add some kernel metadata (console banner and help link)
parent
a448bfa7
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/prob2/jupyter/ProBKernel.java
+13
-0
13 additions, 0 deletions
src/main/java/de/prob2/jupyter/ProBKernel.java
with
13 additions
and
0 deletions
src/main/java/de/prob2/jupyter/ProBKernel.java
+
13
−
0
View file @
2dce5c8e
package
de.prob2.jupyter
;
import
java.util.Collections
;
import
java.util.List
;
import
com.google.inject.Inject
;
import
de.prob.animator.domainobjects.AbstractEvalResult
;
...
...
@@ -23,6 +26,16 @@ public class ProBKernel extends BaseKernel {
this
.
trace
=
new
Trace
(
classicalBFactory
.
create
(
"MACHINE repl END"
).
load
());
}
@Override
public
String
getBanner
()
{
return
"ProB Interactive Expression and Predicate Evaluator (on Jupyter)\nType \":help\" for more information."
;
}
@Override
public
List
<
LanguageInfo
.
Help
>
getHelpLinks
()
{
return
Collections
.
singletonList
(
new
LanguageInfo
.
Help
(
"ProB User Manual"
,
"https://www3.hhu.de/stups/prob/index.php/User_Manual"
));
}
@Override
public
DisplayData
eval
(
final
String
expr
)
{
assert
expr
!=
null
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment