genepattern-notebook


Namegenepattern-notebook JSON
Version 24.4 PyPI version JSON
download
home_pagehttps://github.com/genepattern/genepattern-notebook
SummaryGenePattern Notebook extension for JupyterLab
upload_time2024-04-30 16:28:59
maintainerNone
docs_urlNone
authorThorin Tabor
requires_pythonNone
licenseBSD
keywords genepattern genomics bioinformatics ipython jupyter
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![Version](https://img.shields.io/pypi/v/genepattern-notebook.svg)](https://pypi.python.org/pypi/genepattern-notebook)
[![Build](https://travis-ci.org/genepattern/genepattern-notebook.svg?branch=master)](https://travis-ci.org/genepattern/genepattern-notebook)
[![Documentation Status](https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat)](http://genepattern-notebook.org/programmatic/)
[![Docker Pulls](https://img.shields.io/docker/pulls/genepattern/genepattern-notebook.svg)](https://hub.docker.com/r/genepattern/genepattern-notebook/)
[![Join the chat at https://gitter.im/genepattern](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/genepattern/genepattern-notebook?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

GenePattern Notebook for JupyterLab
====================

The [GenePattern Notebook](http://www.genepattern-notebook.org) 
environment gives GenePattern users the ability to interleave text, graphics, and code with 
their GenePattern analyses to create "notebooks" that can be edited, shared, and published. 

GenePattern Notebooks are built on the [Jupyter](https://jupyter.org/) environment 
and extend it so that users can take advantage of its ease of use and ability to encapsulate 
an entire scientific research narrative, without the need to write code. They are a core 
component of the [g2nb](https://github.com/g2nb) project.

> ### **Looking for classic Jupyter Notebook support?**
> **Jupyter Notebook support in is available, albeit no longer in active development. You can 
> find it in its own branch. [Just click here!](https://github.com/genepattern/genepattern-notebook/tree/notebook)**


### **Prerequisites**

* JupyterLab >= 3.0.0
* ipywidgets >= 7.0.0

# Docker

A Docker image with nbtools and the full JupyterLab stack is available through DockerHub.

```bash
docker pull genepattern/lab
docker run --rm -p 8888:8888 genepattern/lab
```

# Installation

Full installation instructions for casual use are detailed on the 
[GenePattern Notebook website](http://www.genepattern-notebook.org/install/). Users should 
also consider the [g2nb Notebook Repository](https://notebook.genepattern.org), which 
provides an install-free cloud deployment of the full suite of g2nb tools, including GenePattern Notebook.

## Development Install

The installation instructions below are intended for developers who want to install the 
project from PIP or GitHub for the purposes of software development.

### Install Python

In order to get the GenePattern Notebook working you will first need to install a compatible 
version of Python. This means you will need Python 3.6+. We recommend using the 
[Anaconda](https://www.anaconda.com/download/#macos) Python distribution. This is 
a scientific version of Python that ships with many of the most popular Python packages for 
science, math and data analysis (ex: NumPy, SciPy, Pandas, Matplotlib, IPython, etc.).

**Note for Mac Users:** Mac comes with Python, but if you have an older version of the OS 
you will need to install a newer version, as many older versions of MacOS ship with Python 2.

### Install GenePattern Notebook from GitHub

Copy the contents of genepattern-notebook/extension to your development computer and ensure 
that the resulting directory if on your Python path. To test this, open Python and try to 
*import genepattern*. If this is successful, you have a copy of the extension available.

If you don't already have Jupyter installed, you can install it from PIP by running:

> pip install jupyter

From here go to the "Load the GenePattern extension" step below.

### Install GenePattern Notebook from PIP or Conda

The easiest way to install GenePattern Notebook is through either PIP or conda. It can be installed by 
executing one of the following commands:

```bash
pip install genepattern-notebook
```

*or*

```bash
conda install -c genepattern genepattern-notebook
```

### Load the nbtools extension

```bash
# Install ipywidgets, if you haven't already
jupyter nbextension enable --py widgetsnbextension
jupyter labextension install @jupyter-widgets/jupyterlab-manager

# Clone the nbtools repository
git clone https://github.com/genepattern/nbtools-lab-prototype.git
cd nbtools-lab-prototype

# Install the nbtools JupyterLab prototype
pip install .
jupyter labextension install .
jupyter nbextension install --py nbtools --sys-prefix
jupyter nbextension enable --py nbtools --sys-prefix
```

### Launch Jupyter

Finally, you may launch JupyterLab by issuing the following command at the terminal:

> jupyter lab

This will start up the notebook kernel and launch your web browser pointing to the Notebook.

# Related Repositories

The following GitHub repositories contain code or other data related to the GenePattern 
Notebook environment.

* [g2nb](https://github.com/g2nb/g2nb): A meta-package which installs all of the g2nb tools and extensions.
* [genepattern-python](https://github.com/genepattern/genepattern-python): The GenePattern 
    Library allows for programmatic access to GenePattern from Python, and is used by 
    GenePattern Notebook behind the scenes.
* [nbtools](https://github.com/g2nb/nbtools): The Notebook Tool Manager 
    is a tool-agnostic interface and registry for searching, browsing and launching available 
    notebook tools in a Jupyter environment.
* [jupyter-wysiwyg](https://github.com/g2nb/jupyter-wysiwyg): A WYSIWYG editor for 
    markdown cells.
* [example-notebooks](https://github.com/g2nb/example-notebooks): A repository of example notebooks that 
    demonstrate functionality or analysis techniques in the GenePattern Notebook environment.
* [workspace](https://github.com/g2nb/workspace): Scripts, services 
    and other infrastructure used in the operation of the GenePattern Notebook Repository.

# Known Issues

**The current version of the code only works with GenePattern 3.9.3 and up!**

Users using the GenePattern Notebook with an older version of GenePattern (3.9.3 or 3.9.4) may
need to log into the GenePattern UI before making use of the notebook. The server status 
message and child jobs will also be unavailable. If you are using one of these older versions,
we recommend that you upgrade to the latest version of GenePattern.

# Code of Conduct

We are dedicated to providing a harassment-free experience for all members of the GenePattern community, regardless of gender, gender identity and expression, sexual orientation, disability, physical appearance, body size, age, race, or religion. We do not tolerate harassment of participants in any form. This code of conduct applies to all GenePattern spaces, including the Google Group, our Git repositories, and our social media accounts, both online and off. Anyone who violates this code of conduct may be sanctioned or expelled from these spaces at the discretion of the GenePattern team.

For more details, see our [Code of Conduct](https://github.com/genepattern/genepattern-notebook/blob/master/Code_of_Conduct.md).

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/genepattern/genepattern-notebook",
    "name": "genepattern-notebook",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "genepattern, genomics, bioinformatics, ipython, jupyter",
    "author": "Thorin Tabor",
    "author_email": "tmtabor@cloud.ucsd.edu",
    "download_url": "https://files.pythonhosted.org/packages/22/d4/af48cb3cce4995832d7d1bb5c8a06cf44da2ce640fcab31f3ad4a4470634/genepattern-notebook-24.4.tar.gz",
    "platform": null,
    "description": "[![Version](https://img.shields.io/pypi/v/genepattern-notebook.svg)](https://pypi.python.org/pypi/genepattern-notebook)\n[![Build](https://travis-ci.org/genepattern/genepattern-notebook.svg?branch=master)](https://travis-ci.org/genepattern/genepattern-notebook)\n[![Documentation Status](https://img.shields.io/badge/docs-latest-brightgreen.svg?style=flat)](http://genepattern-notebook.org/programmatic/)\n[![Docker Pulls](https://img.shields.io/docker/pulls/genepattern/genepattern-notebook.svg)](https://hub.docker.com/r/genepattern/genepattern-notebook/)\n[![Join the chat at https://gitter.im/genepattern](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/genepattern/genepattern-notebook?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)\n\nGenePattern Notebook for JupyterLab\n====================\n\nThe [GenePattern Notebook](http://www.genepattern-notebook.org) \nenvironment gives GenePattern users the ability to interleave text, graphics, and code with \ntheir GenePattern analyses to create \"notebooks\" that can be edited, shared, and published. \n\nGenePattern Notebooks are built on the [Jupyter](https://jupyter.org/) environment \nand extend it so that users can take advantage of its ease of use and ability to encapsulate \nan entire scientific research narrative, without the need to write code. They are a core \ncomponent of the [g2nb](https://github.com/g2nb) project.\n\n> ### **Looking for classic Jupyter Notebook support?**\n> **Jupyter Notebook support in is available, albeit no longer in active development. You can \n> find it in its own branch. [Just click here!](https://github.com/genepattern/genepattern-notebook/tree/notebook)**\n\n\n### **Prerequisites**\n\n* JupyterLab >= 3.0.0\n* ipywidgets >= 7.0.0\n\n# Docker\n\nA Docker image with nbtools and the full JupyterLab stack is available through DockerHub.\n\n```bash\ndocker pull genepattern/lab\ndocker run --rm -p 8888:8888 genepattern/lab\n```\n\n# Installation\n\nFull installation instructions for casual use are detailed on the \n[GenePattern Notebook website](http://www.genepattern-notebook.org/install/). Users should \nalso consider the [g2nb Notebook Repository](https://notebook.genepattern.org), which \nprovides an install-free cloud deployment of the full suite of g2nb tools, including GenePattern Notebook.\n\n## Development Install\n\nThe installation instructions below are intended for developers who want to install the \nproject from PIP or GitHub for the purposes of software development.\n\n### Install Python\n\nIn order to get the GenePattern Notebook working you will first need to install a compatible \nversion of Python. This means you will need Python 3.6+. We recommend using the \n[Anaconda](https://www.anaconda.com/download/#macos) Python distribution. This is \na scientific version of Python that ships with many of the most popular Python packages for \nscience, math and data analysis (ex: NumPy, SciPy, Pandas, Matplotlib, IPython, etc.).\n\n**Note for Mac Users:** Mac comes with Python, but if you have an older version of the OS \nyou will need to install a newer version, as many older versions of MacOS ship with Python 2.\n\n### Install GenePattern Notebook from GitHub\n\nCopy the contents of genepattern-notebook/extension to your development computer and ensure \nthat the resulting directory if on your Python path. To test this, open Python and try to \n*import genepattern*. If this is successful, you have a copy of the extension available.\n\nIf you don't already have Jupyter installed, you can install it from PIP by running:\n\n> pip install jupyter\n\nFrom here go to the \"Load the GenePattern extension\" step below.\n\n### Install GenePattern Notebook from PIP or Conda\n\nThe easiest way to install GenePattern Notebook is through either PIP or conda. It can be installed by \nexecuting one of the following commands:\n\n```bash\npip install genepattern-notebook\n```\n\n*or*\n\n```bash\nconda install -c genepattern genepattern-notebook\n```\n\n### Load the nbtools extension\n\n```bash\n# Install ipywidgets, if you haven't already\njupyter nbextension enable --py widgetsnbextension\njupyter labextension install @jupyter-widgets/jupyterlab-manager\n\n# Clone the nbtools repository\ngit clone https://github.com/genepattern/nbtools-lab-prototype.git\ncd nbtools-lab-prototype\n\n# Install the nbtools JupyterLab prototype\npip install .\njupyter labextension install .\njupyter nbextension install --py nbtools --sys-prefix\njupyter nbextension enable --py nbtools --sys-prefix\n```\n\n### Launch Jupyter\n\nFinally, you may launch JupyterLab by issuing the following command at the terminal:\n\n> jupyter lab\n\nThis will start up the notebook kernel and launch your web browser pointing to the Notebook.\n\n# Related Repositories\n\nThe following GitHub repositories contain code or other data related to the GenePattern \nNotebook environment.\n\n* [g2nb](https://github.com/g2nb/g2nb): A meta-package which installs all of the g2nb tools and extensions.\n* [genepattern-python](https://github.com/genepattern/genepattern-python): The GenePattern \n    Library allows for programmatic access to GenePattern from Python, and is used by \n    GenePattern Notebook behind the scenes.\n* [nbtools](https://github.com/g2nb/nbtools): The Notebook Tool Manager \n    is a tool-agnostic interface and registry for searching, browsing and launching available \n    notebook tools in a Jupyter environment.\n* [jupyter-wysiwyg](https://github.com/g2nb/jupyter-wysiwyg): A WYSIWYG editor for \n    markdown cells.\n* [example-notebooks](https://github.com/g2nb/example-notebooks): A repository of example notebooks that \n    demonstrate functionality or analysis techniques in the GenePattern Notebook environment.\n* [workspace](https://github.com/g2nb/workspace): Scripts, services \n    and other infrastructure used in the operation of the GenePattern Notebook Repository.\n\n# Known Issues\n\n**The current version of the code only works with GenePattern 3.9.3 and up!**\n\nUsers using the GenePattern Notebook with an older version of GenePattern (3.9.3 or 3.9.4) may\nneed to log into the GenePattern UI before making use of the notebook. The server status \nmessage and child jobs will also be unavailable. If you are using one of these older versions,\nwe recommend that you upgrade to the latest version of GenePattern.\n\n# Code of Conduct\n\nWe are dedicated to providing a harassment-free experience for all members of the GenePattern community, regardless of gender, gender identity and expression, sexual orientation, disability, physical appearance, body size, age, race, or religion. We do not tolerate harassment of participants in any form. This code of conduct applies to all GenePattern spaces, including the Google Group, our Git repositories, and our social media accounts, both online and off. Anyone who violates this code of conduct may be sanctioned or expelled from these spaces at the discretion of the GenePattern team.\n\nFor more details, see our [Code of Conduct](https://github.com/genepattern/genepattern-notebook/blob/master/Code_of_Conduct.md).\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "GenePattern Notebook extension for JupyterLab",
    "version": "24.4",
    "project_urls": {
        "Download": "https://github.com/genepattern/genepattern-notebook/archive/24.04.tar.gz",
        "Homepage": "https://github.com/genepattern/genepattern-notebook"
    },
    "split_keywords": [
        "genepattern",
        " genomics",
        " bioinformatics",
        " ipython",
        " jupyter"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "422679aa48385828d9dea63843cf8fda5a009a8138e9f0ba9e251cfd37fedd58",
                "md5": "687a0897da6debef0b8ce84da8658682",
                "sha256": "3e5e0a5ccd7a0ba4a2de0b29ac8b775fad599fb659129034fd78dedc0d0323da"
            },
            "downloads": -1,
            "filename": "genepattern_notebook-24.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "687a0897da6debef0b8ce84da8658682",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 666075,
            "upload_time": "2024-04-30T16:28:48",
            "upload_time_iso_8601": "2024-04-30T16:28:48.768795Z",
            "url": "https://files.pythonhosted.org/packages/42/26/79aa48385828d9dea63843cf8fda5a009a8138e9f0ba9e251cfd37fedd58/genepattern_notebook-24.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "22d4af48cb3cce4995832d7d1bb5c8a06cf44da2ce640fcab31f3ad4a4470634",
                "md5": "2c9d689b8c8e5d13f135059555fe9700",
                "sha256": "e5840b026668794447277929ace1f6db48ccdb0eabbf7ec132c18c9ed67d19de"
            },
            "downloads": -1,
            "filename": "genepattern-notebook-24.4.tar.gz",
            "has_sig": false,
            "md5_digest": "2c9d689b8c8e5d13f135059555fe9700",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 28259,
            "upload_time": "2024-04-30T16:28:59",
            "upload_time_iso_8601": "2024-04-30T16:28:59.833633Z",
            "url": "https://files.pythonhosted.org/packages/22/d4/af48cb3cce4995832d7d1bb5c8a06cf44da2ce640fcab31f3ad4a4470634/genepattern-notebook-24.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-30 16:28:59",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "genepattern",
    "github_project": "genepattern-notebook",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "genepattern-notebook"
}
        
Elapsed time: 0.28083s