Skip to content

Commit

Permalink
Minor docs & env updates on the Jupyter kernel (#2767)
Browse files Browse the repository at this point in the history
  • Loading branch information
anutosh491 authored Jul 8, 2024
1 parent 1f6a208 commit e2115a7
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 38 deletions.
24 changes: 0 additions & 24 deletions appveyor.yml

This file was deleted.

14 changes: 0 additions & 14 deletions ci/azure_install_macos.sh

This file was deleted.

32 changes: 32 additions & 0 deletions doc/src/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,38 @@ You can run the following examples manually in a terminal:
./src/bin/lpython --show-c examples/expr2.py
```

## Enabling the Jupyter Kernel

To install the Jupyter kernel, install the following Conda packages also:
```
conda install xeus=5.1.0 xeus-zmq=3.0.0 nlohmann_json
```
and enable the kernel by `-DWITH_XEUS=yes` and install into `$CONDA_PREFIX`. For
example:
```
cmake . -GNinja \
-DCMAKE_BUILD_TYPE=Debug \
-DWITH_LLVM=yes \
-DWITH_XEUS=yes \
-DCMAKE_PREFIX_PATH="$CONDA_PREFIX" \
-DCMAKE_INSTALL_PREFIX="$CONDA_PREFIX"
.
ninja install
```
To use it, install Jupyter (`conda install jupyter`) and test that the LPython
kernel was found:
```
jupyter kernelspec list --json
```
Then launch a Jupyter notebook as follows:
```
jupyter notebook
```
Click `New->LPython`. To launch a terminal jupyter LPython console:
```
jupyter console --kernel=lpython
```

## Found a bug?
Please report any bugs you find at our issue tracker [here](https://github.com/lcompilers/lpython/issues). Or, even better, fork the repository on GitHub and create a Pull Request (PR).

Expand Down

0 comments on commit e2115a7

Please sign in to comment.