Skip to main content

A small simple tool to develop python from jupyterlab notebooks.

Project description

JLAB Dev

Develop python packages using jupyterlab.

This library allows you to develop regular python packages while writing your code in jupyterlab. You can create notebooks to develop your code and in these notebooks, simply annotate your cells with #export if you want them to be put in the library. (A notebook must be marked for conversion with #convert in the first code cell.) Other cells will be used as examples in your doc (together with the markdown of your notebook) unless marked with #hide.

Image of nb_convert notebook

Of course JLAB Dev itself is completly implemented as a notebook in jupyterlab (see here).

Installation

It is as simple as a pip install.

# For stable version
pip install jlabdev

# or for bleeding edge
pip install git+https://github.com/penguinmenac3/jlabdev.git

Usage

Basics

Simply create your notebooks and add a code cell with #convert as the first cell and annotate all cells you want to export with #export.

Now you can compile your notebook into python and markdown doc by saving it and then running these commands at the root of your project folder:

nb2py  # Creates python files next to the notebooks
nb2md  # Creates markdown doc in docs

When you edit your python file (e.g. refactoring) and want to update the notebook from the python file.

py2nb

Documentation

Documentation can be found in docs it will be automatically generated there. The README.md is an overview over all packages availible.

License

The MIT License (MIT)

Copyright (c) 2020 Michael Fuerst

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

jlabdev-20221106.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

jlabdev-20221106-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file jlabdev-20221106.tar.gz.

File metadata

  • Download URL: jlabdev-20221106.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for jlabdev-20221106.tar.gz
Algorithm Hash digest
SHA256 a26ef635796edcdbf47e7b764618120ee26be6428d22a5c68e2c562bdd1e9c18
MD5 d6bf7bc17cd4ac0e06f64f2e204cbac0
BLAKE2b-256 4c8b6df9d4c0011caa8abd7f862073db0a436277e5e38f6100c97849da33077f

See more details on using hashes here.

File details

Details for the file jlabdev-20221106-py3-none-any.whl.

File metadata

  • Download URL: jlabdev-20221106-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for jlabdev-20221106-py3-none-any.whl
Algorithm Hash digest
SHA256 adda767b066d4795e4bdc59fb77014044a20485f5209d7446ed114a97f54a154
MD5 ab6bbf67030bd5188843bf8b210f3c26
BLAKE2b-256 0060af9a37fbe464c6cced82978af0be3e8d3e76eca3d7dc9051ee8405d2b7af

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