<commit_before># TutorialD Jupyter Kernel for Project:M36

## Introduction

[The Jupyter Notebook](https://jupyter-notebook.readthedocs.io/en/stable/notebook.html) is web-based tool for experimenting with various languages. Project:M36 offers a Jupyter kernel for the TutorialD interpreter.

The kernel automatically starts and stops its own websocket-server-based database and offers no filesystem persistence, which is similar to other jupyter kernels.

## Installation

To install the `tutd` kernel:

* install the `itutd` module into your jupyter virtual environment:
```
$ cd project-m36/jupyter/itutd
$ python setup.py install    
```

* install `kernel.json`:

   ```$ mkdir ~/Library/Jupyter/kernels/itutd && cp project-m36/jupyter/kernel.json ~/Library/Jupyter/kernels/itutd``` (macOS)

   ```$ mkdir ~/.local/share/jupyter/kernels/tutd && cp project-m36/jupyter/kernel.json ~/.local/share/jupyter/kernels/tutd``` (Linux)

   ```$ mkdir %APPDATA%\jupyter\kernels\tutd && copy project-m36\jupyter\kernel.json %APPDATA%\jupyter\kernels\tutd``` (Windows)

* check that the kernel is detected:
```
$ jupyter kernelspec list
Available kernels:
  python2    ...<commit_msg>fix error handling in jupyter kernel<commit_after># TutorialD Jupyter Kernel for Project:M36

## Introduction

[The Jupyter Notebook](https://jupyter-notebook.readthedocs.io/en/stable/notebook.html) is web-based tool for experimenting with various languages. Project:M36 offers a Jupyter kernel for the TutorialD interpreter.

The kernel automatically starts and stops its own websocket-server-based database and offers no filesystem persistence, which is similar to other jupyter kernels.

## Installation

To install the `tutd` kernel:

* install the `itutd` module into your jupyter virtual environment:
```
$ cd project-m36/jupyter/itutd
$ pip install .
```

* install `kernel.json`:

   ```$ mkdir ~/Library/Jupyter/kernels/itutd && cp project-m36/jupyter/kernel.json ~/Library/Jupyter/kernels/itutd``` (macOS)

   ```$ mkdir ~/.local/share/jupyter/kernels/tutd && cp project-m36/jupyter/kernel.json ~/.local/share/jupyter/kernels/tutd``` (Linux)

   ```$ mkdir %APPDATA%\jupyter\kernels\tutd && copy project-m36\jupyter\kernel.json %APPDATA%\jupyter\kernels\tutd``` (Windows)

* check that the kernel is detected:
```
$ jupyter kernelspec list
Available kernels:
  python2    ...
{'fraction_non_alphanumeric': 0.12198221092757307, 'fraction_numerical': 0.011012282930961457, 'mean_word_length': 4.650717703349282, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '788342', 'n_tokens_mistral': 862, 'n_tokens_neox': 813, 'n_words': 206}