ihaskell-widgets
[Index] [Quick Jump] Package maintainers For package maintainers and hackage trustees Candidates This package implements the ipython widgets in IHaskell. The frontend (javascript) is provided by the jupyter/ipython notebook environment, whereas the backend is implemented in haskell. To know more about the widget messaging protocol, see MsgSpec.md. If you want to contribute with more Notebook examples, please do so on the Examples/ folder. Before commiting, please make sure they can be executed sequentialy and then remove the output from the Nootebooks with: This is a mini-guide for developers that want to update to a more recent widgets specification, but without dwelling into the deeps of the project If you want to add a new attribute you'll have to: First you have to check if the attribute is only for one widget, or is from a common class. You can check it at ipywidget's repo. Some widgets receive messages from the frontend when a value is modified (such as sliders, text areas, buttons...). You'll have to modify the comm function instantiated from the class IHaskellWidget. You can find an example at IntSlider.hs When using widgets in ihaskell, you'll encounter a lot of compilation errors. If you are not very familiar with Haskell, they can be a bit hard to decipher, this is a mini guide that will (hopefully) appear when you paste the error in Google. You probably got this error when trying to use setField like this: What this error means is that there is no field called Index for this particular widget. You can display on screen all the fields available for a widget using properties widget. If you get an error like this, you probably forgot to put the field name in the second argument of setField.
hackage.haskell.org
0.4.0.0
over 2 years ago
8
4,937 total
1
Links
| Registry | hackage.haskell.org |
| Source | Repository |
| Homepage | Homepage |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:hackage/ihaskell-widgets
spec |
| License | MIT |
| First Release | over 10 years ago |
| Last Synced | 5 days ago |
Repository
| Stars | 2,643 on GitHub |
| Forks | 265 on GitHub |
| Commits | 1970 |
| Committers | 117 |
| Avg per Author | 16.838 |
| DDS | 0.639 |