Install `stack`, clone this repository, install Python requirements, install
`ihaskell`, and install the Jupyter kernelspec with `ihaskell`.
```bash
curl -sSL https://get.haskellstack.org/ | sh
git clone https://github.com/gibiansky/IHaskell
...
...
@@ -41,8 +39,8 @@ stack install --fast
ihaskell install--stack
```
if you want to use jupyterlab (right now only version ~0.33), you need to install the jupyterlab ihaskell
extension to get syntax highlighting with:
If you want to use jupyterlab (right now only version ~0.33), you need to
install the jupyterlab ihaskell extension to get syntax highlighting with:
```bash
jupyter labextension install ihaskell_jupyterlab
...
...
@@ -57,7 +55,7 @@ stack exec jupyter -- notebook
## Mac
You need to have [Homebrew](https://brew.sh) installed.
You need to have [Homebrew](https://brew.sh) installed.
If you do not have it yet run `/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"` in your terminal.
You also need the Xcode command line tools.
...
...
@@ -73,7 +71,7 @@ stack install --fast
ihaskell install--stack
```
If you have Homebrew installed to a custom location, you'd need to specify `--extra-include-dirs ${HOMEBREW_PREFIX}/include --extra-lib-dir ${HOMEBREW_PREFIX}/lib` to the `stack` command.
If you have Homebrew installed to a custom location, you'd need to specify `--extra-include-dirs ${HOMEBREW_PREFIX}/include --extra-lib-dir ${HOMEBREW_PREFIX}/lib` to the `stack` command.
Run Jupyter.
...
...
@@ -83,6 +81,35 @@ stack exec jupyter -- notebook
_Tested on macOS Sierra (10.12.6)_
## Windows
IHaskell does not support Windows, however it can be used on Windows 10 via
Windows Subsystem for Linux (WSL). If WSL is not installed, follow the
[Installation Guide for Windows 10](https://docs.microsoft.com/en-us/windows/wsl/install-win10).
The following assumes that Ubuntu is picked as the Linux distribution.
In the Ubuntu app, follow the steps above for Linux.
Jupyter Notebook is now ready to use. In the Ubuntu app, launch a Notebook
Server, without opening the notebook in a browser:
```bash
jupyter notebook --no-browser
```
Returning to Windows 10, open a browser and copy and paste the URL output in the