Skip to main content

Convert IPython Jupyter Notebooks to CWL tool

Project description

IPython2CWL

Build Status Coverage Status Documentation Status

IPython2CWL is a tool for converting IPython Jupyter Notebooks to CWL Command Line Tools by simply providing typing annotation.

from ipython2cwl.iotypes import CWLFilePathInput, CWLFilePathOutput
import csv
input_filename: 'CWLFilePathInput' = 'data.csv'
with open(input_filename) as f:
  csv_reader = csv.reader(f)
  data = [line for line in csv_reader]
number_of_lines = len(data)
result_file: 'CWLFilePathOutput' = 'number_of_lines.txt'
with open(result_file, 'w') as f:
  f.write(str(number_of_lines))

IPython2CWL is based on repo2docker, the same tool used by mybinder. Now, by writing Jupyter Notebook and publish them, including repo2docker configuration, the community can not only execute the notebooks remotely but also to use them as steps in scientific workflows.

Example

jupyter repo2cwl https://github.com/giannisdoukas/cwl-annotated-jupyter-notebook.git -o cwlbuild

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

ipython2cwl-0.0.1.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

ipython2cwl-0.0.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file ipython2cwl-0.0.1.tar.gz.

File metadata

  • Download URL: ipython2cwl-0.0.1.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.10

File hashes

Hashes for ipython2cwl-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2a2802e350d01b2530a922e20da993ed8721533e563b46559116bfb459b617f5
MD5 59283ebad47efdabc0393532fc962f9f
BLAKE2b-256 5461c8d446cd5fb47f6ead386b0e41dbb191c4e873ccedc961b72e367f262f6c

See more details on using hashes here.

File details

Details for the file ipython2cwl-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ipython2cwl-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.10

File hashes

Hashes for ipython2cwl-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 95a0bdfb8b9755df9c7a519ef15cf2c49420d95c8f065cbb27a09e5d34d08fdb
MD5 3f2789680f7e020171851c1d71b9e3ca
BLAKE2b-256 e59c02c784d63988ec11567cd897a909b70c6c26ecfe0a56d42c3753ccff9fe4

See more details on using hashes here.

Supported by

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