# Slicelet

## `QuantitativeReporting` Slicelet

A Slicelet hides the complexity of Slicer's main application user interface. The user interface is limited to those components that are needed for accomplishing the main purpose of the module/extension for which this Slicelet was designed. In other words you can see it as a custom presentation of Slicer which can reduce the Slicer package size and shorten the startup time as well by disabling major components that are not needed for the module.

## Run `QuantitativeReporting` as a Slicelet

For now it's recommended to clone/download `QuantitativeReporting` manually from the \[github repository] (<https://github.com/QIICR/QuantitativeReporting.git>). You can either go directly to the web interface and download it or use git and clone it by means of the cmd(Windows) or terminal(Linux/Mac).

The following command clones the repository into a subdirectory `QuantitativeReporting` which will be located within the directory from where you executed this command:

```
git clone https://github.com/QIICR/QuantitativeReporting.git
```

**Note**: Make sure that you installed all dependencies needed by `QuantitativeReporting`. If you are using a recent nightly build of Slicer you could install `QuantitativeReporting` from the Extension Manager where all dependencies will get installed with it.

### Add Repository to Slicer Application Settings

In order to make your local `QuantitativeReporting` available in Slicer you will need to **add the subdirectory "Py"** to your Slicer application settings as described in the following subsections.

#### Go to "Edit" and Open "Application Settings":

![](/files/-L-1m0_xUn6HOc4N1ujc)

#### Navigate to the Modules Settings:

![](/files/-L-1m0_y7YwhctcVOL7m)

#### Remove Unneeded `QuantitativeReporting` Module

In case that you installed a version of `QuantitativeReporting` with the aid of the Extension Manager, you will need to remove the paths which has been automatically added to the Slicer application settings.

1. Look for a path that includes `QuantitativeReporting` in its name
2. Click onto the path that you would like to get removed from the list
3. Push button "Remove" for removing the selected path

![](/files/-L-1m0_zOiVEs05vgwbm)

#### Add Local `QuantitativeReporting` Module

The last step is to add your locally downloaded/cloned `QuantitativeReporting` to Slicer. Just click "Add" and navigate to the root directory of your local version. Furthermore you will need to select the subdirectory **"Py"** since this directory holds all important source files for the module.

![](/files/-L-1m0a-FO1WOvlrj6Ow)

### Mac OS X

1. Open terminal
2. Navigate to the local directory of your downloaded/cloned QuantitativeReporting/Py
3. Run

   ```
   bash ./startSlicelet.sh
   ```

![](/files/-L-1m0a0cOg3L30mV5cA)

### Windows

TODO

### Linux

TODO

&#x20;Slicelet : <https://www.slicer.org/wiki/Documentation/Nightly/Developers/Slicelets>

&#x20;git: <https://git-scm.com/>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://qiicr.gitbook.io/quantitativereporting-guide/user-guide/slicelet.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
