1109 Commits

Author SHA1 Message Date
Joe Hendrix
54f6e8a3ad
Add withDynamic to IPython.Kernel.ZeroMQ 2015-07-17 12:49:18 -07:00
Andrew Gibiansky
1c2265b64b Merge pull request #527 from sumitsahrawat/try-jupyter
Add link to try.jupyter.org in the README
2015-07-16 16:20:05 -07:00
Sumit Sahrawat
36a30fdc10 Add examples 2015-07-17 01:29:33 +05:30
Sumit Sahrawat
33e8fa3b81 Add link to try.jupyter.org in the README 2015-07-17 01:04:55 +05:30
Sumit Sahrawat
6de64e1497 Add closeWidget for closing widgets 2015-07-16 00:07:19 +05:30
Sumit Sahrawat
44b39799cb Formatting + Remove examples (for now) 2015-07-15 01:56:38 +05:30
Sumit Sahrawat
b87b09274f Add rest of the box widgets
- All widgets complete 
- The tutorial will need to be updated.
2015-07-14 08:05:19 +05:30
Sumit Sahrawat
bcbeddc131 Add first box widget
- Also added on_display handler (still unused though).
- Add uuidToString for UUIDs.
-
2015-07-14 02:07:03 +05:30
Sumit Sahrawat
38049d975a Add example notebook showing all widgets 2015-07-13 14:23:35 +05:30
Sumit Sahrawat
5a451253c4 Minor additions to widget properties
- Add ChangeHandler to widgets that might want it.
- Refactor out trigger<event> functions.
2015-07-13 14:01:31 +05:30
Sumit Sahrawat
3466245bf8 More refactoring
- Add `properties` to view properties of widgets.
- Remove use of `Numeric.Natural`.
- Add verification mechanisms to `Attr`.
2015-07-13 06:28:30 +05:30
Sumit Sahrawat
26addb62a3 Drop -Widget suffix wherever possible 2015-07-12 21:49:01 +05:30
Sumit Sahrawat
4d55781be6 Add float widgets 2015-07-10 15:00:24 +05:30
Sumit Sahrawat
cc18aff5eb Add integer widgets 2015-07-10 04:04:13 +05:30
Andrew Gibiansky
a5e8d623a2 Merge pull request #524 from cruegge/master
Read binary files as ByteString
2015-07-08 11:34:07 -07:00
Andrew Gibiansky
e232aa0faa Merge pull request #519 from sumitsahrawat/refactor
Refactoring Widgets + Boolean Widgets
2015-07-08 11:29:44 -07:00
Sumit Sahrawat
ef846baa0b Install ihaskell-widgets separately for travis 2015-07-06 22:26:20 +05:30
Christoph Ruegge
69db704d47 Read binary files as ByteString 2015-07-06 18:31:02 +02:00
Sumit Sahrawat
492f33b69b Small changes to MsgSpec.md
- Formatting issues: Bad numbering.
- Clarify usage of custom messages.
2015-07-06 18:31:48 +05:30
Sumit Sahrawat
e1dafd0745 Fix formatting issues
- Make verify_formatting.py skip Types.hs and Common.hs
- Fix formatting issues in rest of the files
2015-07-06 18:17:33 +05:30
Sumit Sahrawat
112c046b5d Add selection widgets
- Selection Widgets
  - Dropdown
  - ToggleButtons
  - RadioButtons
  - Select
  - SelectMultiple
- Small fix to MsgSpec.md
2015-07-06 17:34:17 +05:30
Sumit Sahrawat
50d59210d8 Polish up the refactored code
- Rename IHaskell.Display.Widget.Types.Widget to IPythonWidget
- Add explanatory comments to the source files
- Add documentation for messaging protocol in MsgSpec.md
- Add README.md
- Remove unnecessary extensions and imports
2015-07-06 14:56:23 +05:30
Sumit Sahrawat
869973df43 Deal with small -fcontext-stack on ghc-7.8
Use default value from ghc-7.10, i.e 100.
2015-07-05 11:13:58 +05:30
Andrew Gibiansky
807f8c9709 Merge pull request #523 from gdetrez/make-example-compile
Make the example in ipython-kernel compile again
2015-07-04 10:00:51 -04:00
Grégoire Détrez
5b4ac62c9d Make the example in ipython-kernel compile again
Function objectInfo was renamed to inpectInfo
2015-07-04 13:18:05 +02:00
Sumit Sahrawat
4df9f1ec23 Minor changes -- Fix build issue
- Couldn't format as hindent errors out.
- Remove setField' from export list.
- Add version constraints in ihaskell-widget.cabal
2015-07-04 12:33:07 +05:30
Sumit Sahrawat
22abf97732 Add bool widgets 2015-07-04 11:13:16 +05:30
Sumit Sahrawat
26903b1e11 Switch to using Numeric.Natural 2015-07-03 22:40:59 +05:30
Sumit Sahrawat
05e33cbf1b Changing Int properties to PosInt 2015-07-03 15:09:33 +05:30
Sumit Sahrawat
4e6f20e231 Ultimate type-fu ~ A lot of vinyl
- Widgets work, although it requires some tweaking to their properties.
- Dropping dropdown for now. Will deal with selection widgets later.
- Default properties need to be improved.
2015-07-01 15:16:39 +05:30
Sumit Sahrawat
d798bc6918 More type-fu
- Remove IHaskell.Display.Widgets.Common
- Partially refactor Button implementation
- Stuck with ToJSON instance for Widget
2015-06-30 10:37:17 +05:30
Sumit Sahrawat
9471cf851c Basic type-fu 2015-06-28 07:42:29 +05:30
Andrew Gibiansky
0f08817cfa Merge pull request #518 from sumitsahrawat/widgets
Dropdown and Output Widgets
2015-06-27 09:56:24 -04:00
Sumit Sahrawat
f19c76ae2f Fix formatting issues 2015-06-27 03:24:05 +05:30
Sumit Sahrawat
0c6172d664 Finalize dropdown implementation
- Add explicit export list
- Rename to DropdownWidget
- Add selection handling
2015-06-27 03:19:13 +05:30
Sumit Sahrawat
82f0438cdd Finalize minimal dropdown implementation
- More features may be added
2015-06-27 03:19:13 +05:30
Sumit Sahrawat
87ed5699dc Add dropdown widget
- Add dropdown widget and some functions to manipulate it
- Requires the ability to update the internal stored widget without
  sending a message to the frontend.
2015-06-27 03:19:12 +05:30
Sumit Sahrawat
aed969c285 Finalize Output Widget
- Add support for `clear_output`
- Rename `setOutput` to `appendOutput`
2015-06-26 01:41:08 +05:30
Sumit Sahrawat
d7565d15c4 Add Output Widget
- Add Output Widget to ihaskell-widgets
- Add support for sending `display_data` messages as custom messages.
2015-06-26 00:49:59 +05:30
Andrew Gibiansky
eb6caf068b Merge pull request #508 from sumitsahrawat/widgets
Backbone widgets
2015-06-25 08:26:53 -04:00
Sumit Sahrawat
f8947bd0d8 Refactor out common parts to Common module
- Move update and modify to Common
- Move str :: String -> String to Common
- Rename ImageInt to PosInt
- Move PosInt to Common
- Correct some comments erroneously referring to Buttons
2015-06-25 08:59:56 +05:30
Sumit Sahrawat
3681308cce Merge pull request #6 from sumitsahrawat/image-widget
Add ImageWidget
2015-06-24 22:05:55 +05:30
Andrew Gibiansky
17d8064241 Merge pull request #517 from mgomezch/diagrams-binary-readfile
Use readFile from ByteString to read binary files
2015-06-24 09:24:30 -04:00
Andrew Gibiansky
cb55d6b16a Bumping versions for new release v0.6.4.0 2015-06-23 23:30:52 -04:00
Sumit Sahrawat
e68fbb8ec3 Reformat with hindent 2015-06-23 23:25:31 +05:30
Sumit Sahrawat
8f3f18c5e1 Add ImageWidget 2015-06-23 07:00:25 +05:30
Sumit Sahrawat
c86187c103 Refactor + Expand IHaskell.Eval.Widgets
- Send [method .= custom] messages via widgetSendCustom
- Send arbitrary JSON messages via widgetSendValue
- Refactor IHaskell.Eval.Widgets, tidy up handleMessage
2015-06-21 04:37:04 +05:30
Manuel Gomez
df38a542f9 Read binary GIF files as ByteStrings 2015-06-20 00:15:45 -04:30
Sumit Sahrawat
d631368343 Formatting + Remove cruft
- Reformat according to hindent
- Remove String.hs
2015-06-20 10:07:52 +05:30
Manuel Gomez
e7a27b42e9 Use readFile from ByteString to read binary files
Reading a file that might contain PNG data using `System.IO.readFile`
causes `hGetContents: invalid argument (invalid byte sequence)` due to
file contents not being valid text under the current system locale.
This fixes loading diagrams into Jupyter notebooks.
2015-06-19 17:42:48 -04:30