54 Commits

Author SHA1 Message Date
James Brock
28dd8276a9 Update IHaskell kernel for MessageHeader mhBuffers 2020-02-28 15:30:27 +09:00
Vaibhav Sagar
1509bff879 IHaskell.Eval.Evaluate: don't support libraries for testing 2019-09-26 11:12:36 -04:00
Tom McLaughlin
13925c7157 Move busy message as well 2019-05-20 20:04:39 -07:00
Tom McLaughlin
cea94e8eb0 Fix compliance with Jupyter 5.0 spec for idle messages 2019-05-20 20:01:32 -07:00
Vaibhav Sagar
b956d8fbd9 Move ErrorOccurred to IHaskell.Types 2019-03-05 21:44:26 -05:00
Vaibhav Sagar
616bc00e73 Attempt to set error status 2019-03-05 21:23:31 -05:00
Alexander Vershilov
bf631b913f Use Aeson.Object for metadata.
The IPython specification for the metadata does not
define that all fields in metadata must be textual.
Latest Jupyters lab uses that feature so the parsing
mechanism became incomplatible with the protocol.
We change Metadata to be an Aeson.Object and introduce
a 'Metadata' newtype in order to keep that explicit
and open for the later changes if needed.

Fixes #912.
2018-11-16 23:53:48 +03:00
Erik de Castro Lopo
196ccac96d ipython-kernel: Switch on -Wall and fix all warnings
Fixing these warnings required changes to the file names of the `MessageHeader`
struct which makes this commit an API change. The version in the cabal file
has been bumped accordingly.
2018-09-01 22:42:35 +10:00
Erik de Castro Lopo
f43b91294c Switch warnings to -Wall and fix the rest 2018-09-01 18:42:52 +10:00
Erik de Castro Lopo
4c0b3d249b Fix unused import warnings 2018-09-01 18:42:52 +10:00
Erik de Castro Lopo
7115fe470a Fix various unused binding/match/etc related warnings
Add `-Wunused-do-bind -Wunused-local-binds -Wunused-top-binds -Wunused-matches`
and fix all the things.
2018-09-01 18:42:52 +10:00
Erik de Castro Lopo
ca56a29d78 Fix incomplete pattern matches
Add `-Wincomplete-patterns` to the `ghc-options` field of the cabal file
and fix all warnings.
2018-09-01 18:42:52 +10:00
Erik de Castro Lopo
18e108811f Drop support for GHC < 8.0 2018-08-28 17:51:43 +10:00
MMesch
d57a6ca572 add pygment lexer info 2018-07-14 11:06:07 +02:00
MMesch
c10f3e085b add status to all Reply messages 2018-07-14 10:55:02 +02:00
MMesch
1d9f7c357b send IOPub idle message with KernelInfoReply 2018-07-14 10:33:03 +02:00
Vaibhav Sagar
8cc1371e01 ihaskell: update 2018-02-08 17:54:51 +08:00
Justus Sagemüller
4245ef5191 Include RTS flags in kernelspec when installing. 2017-09-23 13:54:06 +02:00
Vaibhav Sagar
95e1830e23 Change InputMessage to ExecuteInputMessage
This stops nbconvert from complaining.
2017-07-27 21:48:43 +08:00
Andrei Barbu
deeaf00338 Remove default flags; they break ghci 2017-03-12 20:09:45 -04:00
Andrei Barbu
e97b70198f Apply #686 2017-03-05 10:12:24 -05:00
Libby Horacek
090ee844bf Reply to CommInfoRequest with actual open comms 2016-10-11 03:10:53 +05:30
Libby Horacek
321bdd95ff Use a Map instead of list of tuples for commInfo
It's a bit closer to a dictionary.
2016-10-11 03:10:53 +05:30
Libby Horacek
8de1a9e081 Add CommInfoRequest and CommInfoReply 2016-10-11 03:10:53 +05:30
Nicholas Luo
ed3b892e02 Use Paths_ihaskell provided by cabal to get IHaskell version number 2016-02-13 14:58:05 +08:00
Nicholas Luo
b2c8b1f059 Create showDefault to show version when flagged 2016-02-13 14:28:18 +08:00
Nicholas Luo
a76d3b82f1 Combine protocol version with rest of kernel info 2016-02-09 22:26:46 +08:00
Nicholas Luo
05100fe640 Add banner to KernelInfoReply 2016-02-09 22:26:46 +08:00
Andrew Gibiansky
66a75d7222 remove reference to data.string.here 2015-12-16 20:06:21 -08:00
louis
cafd410a98 improved replyTo for isCompleteRequests. single commit 2015-12-10 04:35:28 +01:00
Andrew Gibiansky
c61006202e Remove dependence on here, allow haskell-src-exts 1.17 2015-12-07 21:33:22 -08:00
Sumit Sahrawat
e4e026cb92 Fix #597: Implement is_complete_{request,reply}
These messages are used by console frontends to check whether the
current input is complete or not. If it is not complete, the next line
is treated as the continuation of the code, and a '...' prompt is used
to show that.

To provide support for qtconsole, I have made it such that IHaskell
always responds to an is_complete_request by saying that the code is
complete, which only allows for single line inputs.
2015-10-28 16:33:44 +05:30
Andrew Gibiansky
3ebf5b074f Hide stack support behind --stack flag 2015-10-06 10:18:47 -07:00
Sumit Sahrawat
f61ab434c1 Implement the suicidal comm workaround 2015-09-11 11:47:33 +05:30
Andrew Gibiansky
fe89d49748 Add --prefix flag to ihaskell install 2015-08-28 11:41:36 -07:00
Andrew Gibiansky
f4b7fb5983 Allow using ihaskell without stack... 2015-08-25 22:19:18 -07:00
Andrew Gibiansky
a061e22921 Update to newest kernel_info_reply protocol 2015-08-25 15:07:19 -07:00
Andrew Gibiansky
45011f5af4 Fix build failures 3 2015-08-25 13:34:06 -07:00
Andrew Gibiansky
779ecf9e1d Fix build failures 2 2015-08-25 12:36:20 -07:00
Andrew Gibiansky
71265f2d2e Fix build failures 2015-08-25 11:41:21 -07:00
Andrew Gibiansky
8e5e51ff14 Adding support for Stack and running without support lib 2015-08-24 13:54:22 -07:00
Andrew Gibiansky
0c161751e2 Updates 2015-08-24 12:16:16 -07:00
Andrew Gibiansky
460081f181 Fixing compiler error 2015-08-13 01:04:10 -07:00
Andrew Gibiansky
8055216be8 Minor comments 2015-08-12 19:45:46 -07:00
Sumit Sahrawat
16a4fcad57 More minor fixes
- Make hlint happy.
- Reformat using hindent.
- Add explanatory comments in some places.
- Use Control.Monad.foldM for IHaskell.Eval.Widgets.widgetHandler
2015-06-12 23:49:22 +05:30
Sumit Sahrawat
8c2b9a4e68 Send status updates for comm replies 2015-06-10 02:17:16 +05:30
Sumit Sahrawat
c76feb6fc5 Seamless outputs from buttons
It just works.
2015-06-10 01:55:27 +05:30
Sumit Sahrawat
e253c8481f Separate out publish to a module
Separate out publish to IHaskell.Publish
Replace publish with publishResult, which also requires more arguments.
2015-06-09 14:02:59 +05:30
Sumit Sahrawat
b1efbc1c39 Fix kernel death on opening notebooks with widgets
Previously, the kernel would die when opening a notebook with widgets
as there is no widget stored in the kernel when it starts.
2015-06-05 14:19:57 +05:30
Sumit Sahrawat
ba05744db4 Seamless click handling
Evaluate accumulated widget messages in the Ghc Monad, after a comm_msg
recieved from the frontend is handled.
2015-06-05 12:24:17 +05:30