42 Commits

Author SHA1 Message Date
SpencerPark
05dca005f9 Add jars magic to add to the classpath from the notebook 2018-06-17 01:04:49 -04:00
SpencerPark
aee027bdc5 Return value from magic evaluation 2018-06-17 00:20:51 -04:00
SpencerPark
f1cf0c6880 Add maven resolver magics 2018-06-17 00:11:39 -04:00
SpencerPark
72364893a4 Add a maven resolver for looking up dependencies at runtime 2018-06-16 20:39:39 -04:00
SpencerPark
152bf002e1 Support globbing (subset) in classpath and startup script options.
See #17.
2018-06-09 23:14:00 -04:00
SpencerPark
3b950e7eb5 Merge branch 'master' of https://github.com/SpencerPark/IJava 2018-06-09 21:45:43 -04:00
SpencerPark
3f3182761d Merge branch 'mime-rendering' 2018-06-09 21:44:18 -04:00
SpencerPark
d207f34cc9 Add some docs about display functionality. 2018-06-09 21:40:11 -04:00
Spencer Park
0d24ba47a7
Merge pull request #16 from SpencerPark/same-jvm
Evaluation on the same JVM
2018-06-09 20:47:04 -04:00
SpencerPark
a19e1dec7a Expose a plain render function and use DisplayData if returned by eval 2018-06-09 20:40:46 -04:00
SpencerPark
347e3cf492 MIME rendering! 2018-05-27 20:46:24 -04:00
SpencerPark
4cc3e6fa9b Reference execution results by key and quick bug fix with duplicate cell evaluations. 2018-05-27 18:51:24 -04:00
SpencerPark
eb3d7245ca Update install instructions. Fixes #15. 2018-05-14 14:39:08 -04:00
SpencerPark
b143567410 Update options configuration documentation with new timeout and VM specification. 2018-05-14 12:57:32 -04:00
SpencerPark
cfd76f73e5 Only display result if not null 2018-05-14 11:55:25 -04:00
SpencerPark
361bf38159 Update license year 2018-05-14 11:48:57 -04:00
SpencerPark
9cc62f3e28 Properly support evaluation timeout in the execution control and fix raised exceptions to follow the jshell protocol. 2018-05-14 11:46:29 -04:00
SpencerPark
9a5b7b1037 Run the shell in the same jvm and also save the actual result rather than the serialized one. 2018-05-13 22:48:57 -04:00
SpencerPark
31ddd9ccfd Fix input stream closing early. Fixes #14 2018-03-23 15:02:46 -04:00
SpencerPark
93e9e7bf5a Disable magics until the transformer is fixed. See #13 2018-02-02 17:52:59 -05:00
SpencerPark
17d8fbeead Bump gradle wrapper version. See #11 2018-01-26 11:49:55 -05:00
Spencer Park
3a2a9edc61
Merge pull request #10 from ClaudioDavi/master
IJava uptade to match latest kernel
2018-01-17 13:52:52 -05:00
Claudio Davi
7b417696ca Updated Ijava to match latest Kernel 2018-01-16 20:51:42 -02:00
SpencerPark
ba2d877626 Link to binder 2018-01-03 19:50:12 -05:00
SpencerPark
58c6295104 Bump installer version 2018-01-03 18:38:56 -05:00
SpencerPark
24dab5e11e Show timeout feature example 2017-11-11 17:16:17 -05:00
SpencerPark
b86211ae39 Support more configuration options for the kernel.
Timeout: set a limit on long running statements.
Classpath: add to the runtime classpath.
Startup script paths: run specified initialization scripts.
Startup script: run a specified block of code on startup.
2017-11-11 16:03:29 -05:00
SpencerPark
a5680b4649 Initial magics implementation and default imports.
Imports most of the standard java libraries as the jshell tool does.
These include java.{util,io,math,net}.* and
java.util.{concurrent,prefs,regex}.*

Additionally introductory support for 2 simple magic commands '%sh' and
'%%writefile' for running a shell command and writing to a file.
2017-11-02 18:10:36 -04:00
SpencerPark
6fa83085d4 Print the unresolved dependencies when a declaration snippet is RECOVERABLE_NOT_DEFINED. Fixes #3 2017-10-30 16:45:16 -04:00
Spencer Park
494e708689 Merge pull request #5 from mapio/patch-1
Fixing Unix permissions
2017-10-26 17:19:54 -04:00
Massimo Santini
4bf18fbdb4 Fixing Unix permissions
The downloaded wrapper has no execution bit set. This fixes it.
2017-10-26 23:17:06 +02:00
SpencerPark
99e32415f6 Use the public release of the gradle plugin 2017-10-26 15:41:59 -04:00
SpencerPark
16613c29b3 Support specifying VM and compiler arguments for the shell executing the user code 2017-10-23 14:07:43 -04:00
SpencerPark
1a8fc6e73e Add images to README to display some of the features 2017-10-10 12:57:37 -04:00
SpencerPark
ca382216fb Update the README with install instructions and a project overview. 2017-10-08 01:17:42 -04:00
SpencerPark
809d8834ea Changed metadata file name to avoid conflict with the base kernel metadata. 2017-10-07 23:53:33 -04:00
SpencerPark
f38d053620 Improve error formatting.
*   Compilation errors don't print a stack trace but rather explain the
error, print the problematic source lines, and highlight the specific
error region.
*   Incomplete source doesn't print a stack trace but rather the
incomplete lines and a message notifying the user that the code is
incomplete.
*   Evaluation exceptions don't print 'EvalException' as the exception
name but instead the class name of the underlying exception that the
exception wraps.
2017-10-07 23:45:27 -04:00
SpencerPark
fe4520a1d4 Set up correct project name and package. Fixed kernel banner to be more helpful in displaying kernel info 2017-10-07 00:52:09 -04:00
SpencerPark
f8916a172f Fixed license header and license plugin configuration 2017-10-06 23:14:37 -04:00
SpencerPark
90cf0fd11a Code cleanup and fix some off by one errors. 2017-10-06 22:56:09 -04:00
SpencerPark
82aad7c59f Improve error messages 2017-10-02 13:18:16 -04:00
SpencerPark
3fcad22106 Base kernel implementation 2017-09-30 20:45:48 -04:00