Skip to main content

Allows the use of argparser defaults in main.py to be used in notebooks without having to be rewritten.

Project description

jupyter_argparser

Summary description here.

Install

pip install jupyter_argparser

How to use

# Example usage

from jupyter_argparser.core import *

parser = argparse.ArgumentParser()

parser.add_argument('--size', type=int, default=240)
parser.add_argument('--temperature', type=float, default=0.0002)
parser.add_argument('--resume', type=str2bool, default=False)

args = parser.parse_args()

print(args.size)
print(args.temperature)
print(args.resume)
240
0.0002
False

Project details


Download files

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

Files for jupyter-argparser, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size jupyter_argparser-0.0.5-py3-none-any.whl (7.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size jupyter_argparser-0.0.5.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page