An open API service indexing awesome lists of open source software.

https://github.com/jupyter-xeus/xeus-calc

Jupyter kernel for a simple calculator
https://github.com/jupyter-xeus/xeus-calc

Last synced: 3 months ago
JSON representation

Jupyter kernel for a simple calculator

Awesome Lists containing this project

README

        

# xeus-calc

[![Azure Pipelines](https://dev.azure.com/jupyter-xeus/jupyter-xeus/_apis/build/status/jupyter-xeus.xeus-calc?branchName=master)](https://dev.azure.com/jupyter-xeus/jupyter-xeus/_build/latest?definitionId=10&branchName=master)
[![Appveyor](https://ci.appveyor.com/api/projects/status/t2u22uaevru2ugm8?svg=true)](https://ci.appveyor.com/project/jupyter-xeus/xeus-calc)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/jupyter-xeus/xeus-calc/master?filepath=notebooks/Xeus-calc.ipynb)

Calculator as a Jupyter Kernel implemented with Xeus

## Usage

Launch the Jupyter notebook with `jupyter notebook` or Jupyter lab with `jupyter lab` and launch a new notebook by selecting the **xeus-calc** kernel.

**Code execution**:

![Basic code execution](xeus-calc2.gif)

## Installation

To ensure that the installation works, it is preferable to install `xeus` in a fresh mamba/conda environment.

```bash
mamba create -n xeus-calc-env -c conda-forge xtl nlohmann_json cppzmq xeus
```

Once you have installed ` xeus ` ,the ` xeus-calc ` project is quite easy to install, you have to clone the repository, and run the following command lines :

```bash
mkdir build
cd build
cmake -D CMAKE_INSTALL_PREFIX=$CONDA_PREFIX ..
make
make install
```

## Contributing

See [CONTRIBUTING.md](./CONTRIBUTING.md) to know how to contribute and set up a development environment.

## License

We use a shared copyright model that enables all contributors to maintain the
copyright on their contributions.

This software is licensed under the BSD-3-Clause license. See the [LICENSE](LICENSE) file for details.