Skip to main content

a command line tool for parsing jupyter notebooks

Project description

Build Status codecov

jupyter-parser is a jupyter notebook parser that attempts to gather information about the varying ways in which a notebook may be used. jupyter-parser has been tested on python 2.7.12 and python 3.5.2. The current plugins written to parse notebook files are found in the plugins directory and are described below…

Plugins - CellsCorrectPlugin: determines whether or not cells are in the correct execution order - NotebookLibrariesPlugin: determines the modules imported from the notebooks (can be local) - NotebookSparkPlugin: uses a regular expression to search for any pyspark variables

Plugins are included in the constructor of the main parser(JupyterParser). This architecture is likely to be temporary as the goal of being language/file agnostic is in the future.

This library should be used with `gist-dl <https://github.com/cameres/gist-dl>`__ in order to quickly download example notebooks from `gist.github.com <http://gist.github.com>`__.

Installation

The project was recently added to PYPI. Feel free to submit an issue if there are any issues with downloading via the command below…

pip install github-dl

Installation (Development)

Install the project by downloading the project as a zip file or cloning the repository. After downloading the source, run the following command to install in the root directory of the project…

pip install -e .

Usage

jupyter-parser’s functionality is currently fairly limited, but the following functionality is supported

command line argument/option

functionality

--help

list arguments/options for tool

--root

specify the root directory to parse for files

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyter-parser-0.0a2.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jupyter_parser-0.0a2-py2.py3-none-any.whl (7.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file jupyter-parser-0.0a2.tar.gz.

File metadata

File hashes

Hashes for jupyter-parser-0.0a2.tar.gz
Algorithm Hash digest
SHA256 db2cd7200f0305818034ca231bf4c8d0a663e93e03b781ef47ee959770c80ee3
MD5 3869654feb7d1a602a42047fc73db88c
BLAKE2b-256 60d16473ec175f4bd89659c776574d3dee35c87a29f73796ff1da6ba1f4a8f70

See more details on using hashes here.

File details

Details for the file jupyter_parser-0.0a2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for jupyter_parser-0.0a2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 70dc2cc7c796b5c417325a324bb2ede894ef5e12e3017df1a6b418149a142e81
MD5 4afe58bf26ddab3059a491e16460a519
BLAKE2b-256 dadf38778e1c463b201dddf7e4280b302a2f08aa9025d16ee7148c7442058a1d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page