dfkernel


Namedfkernel JSON
Version 4.0.0a2 PyPI version JSON
download
home_pageNone
SummaryDataflow Python Kernel for Jupyter
upload_time2024-06-04 19:42:57
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
license## BSD 3-Clause License ### Copyright (c) 2017-2020, Dataflow Notebook Development Team All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ## IPython and Jupyter Dependencies ## This code extends the IPython and Jupyter projects. In a few cases, code from those projects is included in this repository. That code remains subject to those licenses.
keywords dataflow jupyter kernel python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            # Dataflow Kernel for Jupyter/Python

[![License](https://img.shields.io/badge/License-BSD3-blue.svg)](https://github.com/dataflownb/dfkernel/blob/master/LICENSE)
[![PyPI version](https://badge.fury.io/py/dfkernel.svg)](https://badge.fury.io/py/dfkernel)
<!--
[![Build Status](https://travis-ci.org/dataflownb/dfkernel.svg?branch=master)](https://travis-ci.org/dataflownb/dfkernel)
[![Documentation Status](https://readthedocs.org/projects/dfkernel/badge)](http://dfkernel.readthedocs.io/)
[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/dataflownb/dfexamples/master)
-->

This package is part of the [Dataflow Notebooks](https://dataflownb.github.io) project and provides the Dataflow Python kernel for Jupyter, and is intended to be used with [JupyerLab](https://github.com/jupyterlab/jupyterlab/)
in concert with the [dfnotebook-extension](https://github.com/dataflownb/dfnotebook-extension).
This kernel seeks to elevate *outputs* as memorable waypoints during exploratory computation. To that end,

- Cell identifiers are **persistent** across sessions and are random UUIDs to signal they do not depend on top-down order.
- As with standard IPython, outputs are designated by being written as expressions or assignments on the **last line** of a cell.
- Each output is identified by its variable name if one is specified (e.g. `a`, `c,d = 4,5`), and the cell identifier if not (e.g. `4 + c`)
- Variable names **can be reused** across cells.
- Cells are executed as closures so only the outputs are accessible from other cells.
- An output can then be referenced in three ways:
    1. unscoped: `foo` refers to the most recent execution output named `foo`
    2. persistent: `foo$ba012345` refers to output `foo` from cell `ba012345`
    3. tagged: `foo$bar` refers to output `foo` from the cell tagged as `bar`
- All output references are transformed to **persistent** names upon execution.
- Output references implicitly define a dataflow in a directed acyclic graph, and the kernel automatically executes dependencies.

## Example Notebook

<img src="https://dataflownb.github.io/assets/images/dfnotebook.svg" width="640" alt="Dataflow Notebook Example">

## Installation

These instructions **only install the kernel**. Please see the 
[dfnotebook-extension](https://github.com/dataflownb/dfnotebook-extension)
instructions for full instructions.

### PyPI

`pip install dfkernel`

### From source

1. `git clone https://github.com/dataflownb/dfkernel`
2. `cd dfkernel`
3. `pip install -e .`
4. `python -m dfkernel install [--user|--sys-prefix]`

Note that `--sys-prefix` works best for conda environments.

### Dependencies

* IPython >= 7.0
* JupyterLab >= 2.0
* ipykernel >= 4.8.2

## Previous Versions

dfkernel 1.0 worked with Jupyter Notebook, but we have decided to support JupyterLab in the future. Documentation and tutorials for v1.0 are below, but still need to be updated for v2.0.

### v1.0 Documentation

#### General
- [readthedocs](http://dfkernel.readthedocs.io/en/latest/)
- [tutorial](http://dfkernel.readthedocs.io/en/latest/dfkernel-tutorial.html)

#### Advanced Usage
- [Dependency Viewer Tutorial](http://dfkernel.readthedocs.io/en/latest/dep-view-tutorial.html)
- [Dependency Workings and Cell Toolbar](http://dfkernel.readthedocs.io/en/latest/dependency-cell-toolbar.html)
- [Notebook Interactions](http://dfkernel.readthedocs.io/en/latest/notebook-interactions.html)
- [Cell Statuses](http://dfkernel.readthedocs.io/en/latest/dfkernel-statuses.html)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "dfkernel",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "Dataflow, Jupyter, Kernel, Python",
    "author": null,
    "author_email": "Dataflow Notebook Development Team <dataflownb@users.noreply.github.com>",
    "download_url": "https://files.pythonhosted.org/packages/76/80/121c8da8043bb8ebc2d164efa219d72d8202647704b31c20c3034736e84d/dfkernel-4.0.0a2.tar.gz",
    "platform": null,
    "description": "# Dataflow Kernel for Jupyter/Python\n\n[![License](https://img.shields.io/badge/License-BSD3-blue.svg)](https://github.com/dataflownb/dfkernel/blob/master/LICENSE)\n[![PyPI version](https://badge.fury.io/py/dfkernel.svg)](https://badge.fury.io/py/dfkernel)\n<!--\n[![Build Status](https://travis-ci.org/dataflownb/dfkernel.svg?branch=master)](https://travis-ci.org/dataflownb/dfkernel)\n[![Documentation Status](https://readthedocs.org/projects/dfkernel/badge)](http://dfkernel.readthedocs.io/)\n[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/dataflownb/dfexamples/master)\n-->\n\nThis package is part of the [Dataflow Notebooks](https://dataflownb.github.io) project and provides the Dataflow Python kernel for Jupyter, and is intended to be used with [JupyerLab](https://github.com/jupyterlab/jupyterlab/)\nin concert with the [dfnotebook-extension](https://github.com/dataflownb/dfnotebook-extension).\nThis kernel seeks to elevate *outputs* as memorable waypoints during exploratory computation. To that end,\n\n- Cell identifiers are **persistent** across sessions and are random UUIDs to signal they do not depend on top-down order.\n- As with standard IPython, outputs are designated by being written as expressions or assignments on the **last line** of a cell.\n- Each output is identified by its variable name if one is specified (e.g. `a`, `c,d = 4,5`), and the cell identifier if not (e.g. `4 + c`)\n- Variable names **can be reused** across cells.\n- Cells are executed as closures so only the outputs are accessible from other cells.\n- An output can then be referenced in three ways:\n    1. unscoped: `foo` refers to the most recent execution output named `foo`\n    2. persistent: `foo$ba012345` refers to output `foo` from cell `ba012345`\n    3. tagged: `foo$bar` refers to output `foo` from the cell tagged as `bar`\n- All output references are transformed to **persistent** names upon execution.\n- Output references implicitly define a dataflow in a directed acyclic graph, and the kernel automatically executes dependencies.\n\n## Example Notebook\n\n<img src=\"https://dataflownb.github.io/assets/images/dfnotebook.svg\" width=\"640\" alt=\"Dataflow Notebook Example\">\n\n## Installation\n\nThese instructions **only install the kernel**. Please see the \n[dfnotebook-extension](https://github.com/dataflownb/dfnotebook-extension)\ninstructions for full instructions.\n\n### PyPI\n\n`pip install dfkernel`\n\n### From source\n\n1. `git clone https://github.com/dataflownb/dfkernel`\n2. `cd dfkernel`\n3. `pip install -e .`\n4. `python -m dfkernel install [--user|--sys-prefix]`\n\nNote that `--sys-prefix` works best for conda environments.\n\n### Dependencies\n\n* IPython >= 7.0\n* JupyterLab >= 2.0\n* ipykernel >= 4.8.2\n\n## Previous Versions\n\ndfkernel 1.0 worked with Jupyter Notebook, but we have decided to support JupyterLab in the future. Documentation and tutorials for v1.0 are below, but still need to be updated for v2.0.\n\n### v1.0 Documentation\n\n#### General\n- [readthedocs](http://dfkernel.readthedocs.io/en/latest/)\n- [tutorial](http://dfkernel.readthedocs.io/en/latest/dfkernel-tutorial.html)\n\n#### Advanced Usage\n- [Dependency Viewer Tutorial](http://dfkernel.readthedocs.io/en/latest/dep-view-tutorial.html)\n- [Dependency Workings and Cell Toolbar](http://dfkernel.readthedocs.io/en/latest/dependency-cell-toolbar.html)\n- [Notebook Interactions](http://dfkernel.readthedocs.io/en/latest/notebook-interactions.html)\n- [Cell Statuses](http://dfkernel.readthedocs.io/en/latest/dfkernel-statuses.html)\n",
    "bugtrack_url": null,
    "license": "## BSD 3-Clause License ###  Copyright (c) 2017-2020, Dataflow Notebook Development Team All rights reserved.  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:  * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.  * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.  * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  ## IPython and Jupyter Dependencies ##  This code extends the IPython and Jupyter projects. In a few cases, code from those projects is included in this repository. That code remains subject to those licenses.",
    "summary": "Dataflow Python Kernel for Jupyter",
    "version": "4.0.0a2",
    "project_urls": {
        "Homepage": "https://github.com/dataflownb/dfkernel"
    },
    "split_keywords": [
        "dataflow",
        " jupyter",
        " kernel",
        " python"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "56463a4d520e8a38e8bb55daa34efb4a9810da7c22f7b3fc57d18274e5dde1a2",
                "md5": "47fe07bfa0e91913e0067c25fdb8bf7c",
                "sha256": "814f33a8c68c34051ee711c173f1d0d0e1cd1ed678b96357dbeb1d8e72ffdccb"
            },
            "downloads": -1,
            "filename": "dfkernel-4.0.0a2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "47fe07bfa0e91913e0067c25fdb8bf7c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 1653007,
            "upload_time": "2024-06-04T19:42:55",
            "upload_time_iso_8601": "2024-06-04T19:42:55.819548Z",
            "url": "https://files.pythonhosted.org/packages/56/46/3a4d520e8a38e8bb55daa34efb4a9810da7c22f7b3fc57d18274e5dde1a2/dfkernel-4.0.0a2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7680121c8da8043bb8ebc2d164efa219d72d8202647704b31c20c3034736e84d",
                "md5": "f9a665a817776c715af492aedba1f438",
                "sha256": "94966215310c151b0ff247bb923ed16c673196e7fcc3f49c35ecfbaf2224255a"
            },
            "downloads": -1,
            "filename": "dfkernel-4.0.0a2.tar.gz",
            "has_sig": false,
            "md5_digest": "f9a665a817776c715af492aedba1f438",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 1166520,
            "upload_time": "2024-06-04T19:42:57",
            "upload_time_iso_8601": "2024-06-04T19:42:57.938961Z",
            "url": "https://files.pythonhosted.org/packages/76/80/121c8da8043bb8ebc2d164efa219d72d8202647704b31c20c3034736e84d/dfkernel-4.0.0a2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-04 19:42:57",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dataflownb",
    "github_project": "dfkernel",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "lcname": "dfkernel"
}
        
Elapsed time: 0.25699s