semvec/pypi-packages huggingface dataset:
jupyter-remote-runner 0.1.1
CLI interface to a persistent Jupyter kernel for code execution with timeout handling
Requires Python: <4.0,>=3.8

# Jupyter Remote Runner

A CLI interface to a persistent Jupyter kernel for code execution with timeout handling and streaming output.

## Installation

Install using pipx (recommended):

```bash
pipx install .
```

Or using pip:

```bash
pip install .
```

## Usage

### Commands

- `jupyter-remote-runner --help` - Show help
- `jupyter-remote-runner start` - Start the Jupyter kernel daemon
- `jupyter-remote-runner stop` - Stop the daemon
- `jupyter-remote-runner status` - Check daemon status
- `jupyter-remote-runner run <code>` - Execute code in the persistent kernel

### Run Command Options

- `--timeout <seconds>` - Set execution timeout (default: 60)
- `--is-input` - Send code as input to Python input() prompt

### Examples

```bash
# Start the daemon
jupyter-remote-runner start

# Execute Python code
jupyter-remote-runner run "print('Hello World')"

# Execute shell command
jupyter-remote-runner run "!ls -la"

# Execute bash magic
jupyter-remote-runner run "%%bash\necho 'Hello from bash'"

# Continue previous command output
jupyter-remote-runner run " "

# Interrupt running command
jupyter-remote-runner run "C-c"

# Execute with custom timeout
jupyter-remote-runner run "import time; time.sleep(10)" --timeout 15

# Check status
jupyter-remote-runner status

# Stop the daemon
jupyter-remote-runner stop
```

## Features

- **Persistent Kernel**: Maintains state between commands
- **Streaming Output**: Real-time output streaming
- **Timeout Support**: Configurable execution timeouts
- **Cross-Platform**: Works on Windows, macOS, and Linux
- **Background Daemon**: Runs kernel in background process
- **Signal Handling**: Support for interrupting long-running commands
- **Input Support**: Handle Python input() calls

## Development

Run tests:

```bash
python test_cli.py
```

Run directly from source:

```bash
python -m jupyter_remote_runner --help
```
naima 0.10.3
Derivation of non-thermal particle distributions through MCMC spectral fitting
Requires Python: >=3.10

naima
=====

``naima`` is a Python package for computation of non-thermal radiation from
relativistic particle populations. It includes tools to perform MCMC fitting of
radiative models to X-ray, GeV, and TeV spectra using `emcee
<http://dan.iel.fm/emcee>`_, an affine-invariant ensemble sampler for Markov
Chain Monte Carlo.

``naima`` is named after a `ballad composed by John Coltrane in 1959
<https://en.wikipedia.org/wiki/Naima>`_ which appeared in the albums
`Giant Steps (1959) <https://www.youtube.com/watch?v=QTMqes6HDqU>`_ and
`Live at the Village Vanguard (1961) <https://www.youtube.com/watch?v=Tq3-99vbFt8>`_.

.. image:: http://img.shields.io/pypi/v/naima.svg
	:target: https://pypi.python.org/pypi/naima/
.. image:: http://img.shields.io/badge/license-BSD-green.svg
	:target: https://github.com/zblz/naima/blob/master/LICENSE.rst
.. image:: http://img.shields.io/badge/powered%20by-AstroPy-orange.svg
	:target: http://www.astropy.org
.. image:: http://img.shields.io/badge/arXiv-1509.03319-blue.svg
	:target: http://arxiv.org/abs/1509.03319

Documentation
^^^^^^^^^^^^^

Documentation is at `naima.readthedocs.io
<http://naima.readthedocs.io>`_.

Attribution
^^^^^^^^^^^

If you find ``naima`` useful in your research, you can cite `Zabalza (2015)
<http://arxiv.org/abs/1509.03319>`_ to acknowledge its use. The BibTeX entry for
the paper is:

.. code-block:: bibtex

    @ARTICLE{naima,
       author = {{Zabalza}, V.},
        title = {naima: a Python package for inference of relativistic particle
                 energy distributions from observed nonthermal spectra},
         year = 2015,
      journal = {Proc.~of International Cosmic Ray Conference 2015},
        pages = "922",
       eprint = {1509.03319},
       adsurl = {http://adsabs.harvard.edu/abs/2015arXiv150903319Z},
    }

License
^^^^^^^

Naima is released under a 3-clause BSD style license - see the
`LICENSE.rst <https://github.com/zblz/naima/blob/master/LICENSE.rst>`_ file.

Code status
^^^^^^^^^^^

.. image:: https://img.shields.io/github/actions/workflow/status/zblz/naima/tests.yaml?branch=main
        :target: https://github.com/zblz/naima/actions/workflows/tests.yaml
.. image:: https://img.shields.io/badge/benchmarked%20by-asv-green.svg
        :target: http://zblz.github.io/naima-benchmarks