mirror of
https://github.com/IHaskell/IHaskell.git
synced 2025-04-14 18:36:08 +00:00

Update some example notebooks to the latest notebook version, so that when they start, Jupyter doesn't immediately update them and mark them as changed. Also replace the fake diagrams test notebook with a real diagrams test notebook. The fake diagrams test notebook was actually the charts test notebook.
58 lines
1.3 KiB
Plaintext
58 lines
1.3 KiB
Plaintext
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "markdown",
|
|
"metadata": {
|
|
"hidden": false
|
|
},
|
|
"source": [
|
|
"# Notebook test\n",
|
|
"\n",
|
|
"This IHaskell noteook should just test, whether IHaskell and JuicyPixels are properly installed and working.\n",
|
|
"\n",
|
|
"Just click in the box below and click on the \"Run\" command in the above menu. "
|
|
]
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"metadata": {
|
|
"collapsed": false,
|
|
"hidden": false,
|
|
"jupyter": {
|
|
"outputs_hidden": false
|
|
}
|
|
},
|
|
"outputs": [],
|
|
"source": [
|
|
"{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-}\n",
|
|
"\n",
|
|
"import IHaskell.Display.Juicypixels\n",
|
|
"import Codec.Picture\n",
|
|
" \n",
|
|
"myImage = generateImage pixelRenderer 250 300\n",
|
|
" where pixelRenderer x y = PixelRGB8 (fromIntegral x) (fromIntegral y) 128\n",
|
|
" \n",
|
|
"myImage "
|
|
]
|
|
}
|
|
],
|
|
"metadata": {
|
|
"kernelspec": {
|
|
"display_name": "Haskell",
|
|
"language": "haskell",
|
|
"name": "haskell"
|
|
},
|
|
"language_info": {
|
|
"codemirror_mode": "ihaskell",
|
|
"file_extension": ".hs",
|
|
"mimetype": "text/x-haskell",
|
|
"name": "haskell",
|
|
"pygments_lexer": "Haskell",
|
|
"version": "8.10.4"
|
|
}
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat_minor": 4
|
|
}
|