Перейти к файлу
Wendy Fu 76ce6b7608 Change output file to be named after input file instead of note.json. 2017-08-18 15:13:18 -07:00
data initial commit 2017-05-19 16:27:10 -07:00
docs small tweaks 2017-05-25 12:40:26 -07:00
tests added python-dateutil to parse diff date formats (#17) 2017-06-22 15:27:02 -07:00
zeppelin Change output file to be named after input file instead of note.json. 2017-08-18 15:13:18 -07:00
.gitignore added license and gitignore 2017-05-18 10:42:22 -07:00
.travis.yml added python-dateutil to parse diff date formats (#17) 2017-06-22 15:27:02 -07:00
LICENSE added license and gitignore 2017-05-18 10:42:22 -07:00
Makefile changed theme to read-the-docs 2017-05-25 12:40:26 -07:00
README.md Add how to install package 2017-08-09 09:52:49 -07:00
setup.cfg added support for legacy zeppelin notebooks (#9) 2017-06-09 11:47:42 -07:00
setup.py Change output file to be named after input file instead of note.json. 2017-08-18 15:13:18 -07:00

README.md

Python Zeppelin Build Status

Requirements

  • Python 3.* (Tested on Python 3.6 -- may work on other versions)
  • Cairo: python-zeppelin relies on CairoSVG to convert SVG to PNG. Please refer to the CairoSVG documentation for installation instructions.

Installation

pip install python-zeppelin

Usage

Converter

To convert a Zeppelin .json file into Markdown (.md), run zeppelin-convert -i <<INPUT>> -o <<OUTPUT>> in the main directory.

  • <<INPUT>> is the file name. This is a required field.
  • <<OUTPUT>> is the output file name. This is optional. If this is not provided, the output file name will be called knowledge.md and it will be stored in the current directory. You can also provide a path before the filename to specify a location to save the file path/to/file/filename.

If there are png outputs, they will be stored under /images in the same location as the output file.

Executor

To execute a Zeppelin notebook in command line, run zeppelin-execute -i <<INPUT>> -o <<OUTPUT>> -u <<URL>> in the main directory.

  • <<INPUT>> is the file name. This is a required field.
  • <<OUTPUT>> is the path where you want to save the executed json. This is optional. If this is not provided, the output file will be saved to the current directory. The file name is note.json.
  • <<URL>> is the zeppelin url. This is optional. The default is localhost:8890.

Testing

To execute the tests under /tests, run pytest -v.