All Projects → JovianML → kernel-run

JovianML / kernel-run

Licence: other
Run any Jupyter notebook instantly using Kaggle kernels

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to kernel-run

Deep-Inside
Command line tool that allows you to explore IoT devices by using Shodan API.
Stars: ✭ 22 (-62.71%)
Mutual labels:  command-line-tool
liszt
Save snippets of information quickly through the command line
Stars: ✭ 15 (-74.58%)
Mutual labels:  command-line-tool
flynt-cli
CLI tool for the WordPress Flynt framework
Stars: ✭ 15 (-74.58%)
Mutual labels:  command-line-tool
nycurl
A web server that fetches data from the New York Times and formats it for display in the terminal.
Stars: ✭ 27 (-54.24%)
Mutual labels:  command-line-tool
rotten tomatoes cli
Rotten Tomatoes CLI
Stars: ✭ 14 (-76.27%)
Mutual labels:  command-line-tool
sklearn-feature-engineering
使用sklearn做特征工程
Stars: ✭ 114 (+93.22%)
Mutual labels:  kaggle
go
Go-based command-line tool for the remove.bg API
Stars: ✭ 91 (+54.24%)
Mutual labels:  command-line-tool
anime-cli
A commandline app for searching about animes, its seasons, number of seasons and airing status.
Stars: ✭ 73 (+23.73%)
Mutual labels:  command-line-tool
sample
Produce a sample of lines from files.
Stars: ✭ 17 (-71.19%)
Mutual labels:  command-line-tool
garmin-connect-export
Downloads gpx, tcx or original fit files from your Garmin Connect Account.
Stars: ✭ 42 (-28.81%)
Mutual labels:  command-line-tool
cfdns
Command line tool for manipulating DNS of CloudFlare hosted domains
Stars: ✭ 20 (-66.1%)
Mutual labels:  command-line-tool
sane
make, but sane.
Stars: ✭ 15 (-74.58%)
Mutual labels:  command-line-tool
harwest-tool
A one-shot tool to harvest submissions from different OJs onto one single VCS managed repository http://bit.ly/harwest
Stars: ✭ 89 (+50.85%)
Mutual labels:  command-line-tool
pganonymize
A commandline tool for anonymizing PostgreSQL databases
Stars: ✭ 20 (-66.1%)
Mutual labels:  command-line-tool
AppIconSetGen
Tool to generate App Icon set for iOS, macOS, watchOS apps
Stars: ✭ 20 (-66.1%)
Mutual labels:  command-line-tool
minimist2
TypeScript/JavaScript ES6 rewrite of popular Minimist argument parser
Stars: ✭ 20 (-66.1%)
Mutual labels:  command-line-tool
doing-cli
CLI tool to simplify the development workflow on azure devops
Stars: ✭ 19 (-67.8%)
Mutual labels:  command-line-tool
convolutedPredictions Cdiscount
2nd place solution to Kaggle's Cdiscount image classification challange.
Stars: ✭ 17 (-71.19%)
Mutual labels:  kaggle
chrome-webstore-manager
https://www.npmjs.com/package/chrome-webstore-manager
Stars: ✭ 32 (-45.76%)
Mutual labels:  command-line-tool
gomphotherium
Gomphotherium (/ˌɡɒmfəˈθɪəriəm/; "welded beast"), a command line Mastodon client.
Stars: ✭ 22 (-62.71%)
Mutual labels:  command-line-tool

kernel-run 🔥🚀

Instantly create and run a Kaggle kernel from any Jupyter notebook (local file or URL).

kaggle-run-demo

$ pip install kernel-run --upgrade

$ kernel-run path/to/notebook.ipynb
Kernel created successfully: https://www.kaggle.com/aakashns/kr-notebook/edit

$ kernel-run http://cs231n.stanford.edu/notebooks/pytorch_tutorial.ipynb
Kernel created successfully: https://www.kaggle.com/aakashns/kr-pytorch-tutorial/edit

kernel-run uploads the Jupyter notebook to a private kernel in your Kaggle account, and launches a browser window so you can start editing/executing the code immediately.

Installation

pip install kernel-run --upgrade

The above command install a command-line tool called kernel-run which can be invoked from the terminal/command prompt.

Note: To allow kaggle-run to upload the notebook to your Kaggle account, you need to download the Kaggle API credentials file kaggle.json. To download the kaggle.json file:

  1. Go to https://kaggle.com
  2. Log in and go to your account page
  3. Click the "Create New API Token" button in the "API" section
  4. Move the downloaded kaggle.json file to the folder ~/.kaggle/

CLI Usage & Options

Run the kernel-run command on your terminal/command prompt with a Jupyter notebook's path (or URL) as the argument:

$ kernel-run path/to/notebook.ipynb
Kernel created successfully: https://www.kaggle.com/aakashns/kr-notebook/edit

$ kernel-run http://cs231n.stanford.edu/notebooks/pytorch_tutorial.ipynb
Kernel created successfully: https://www.kaggle.com/aakashns/kr-pytorch-tutorial/edit

There are various options you can configure. Run kernel-run -h to see the options:

usage: kernel-run notebook_path_or_url [-h] [--public] [--new] [--no-browser] [--strip-output] [--prefix PREFIX]

positional arguments:
  notebook_path_or_url  Path/URL of the Jupyter notebook

optional arguments:
  -h, --help            show this help message and exit
  --public              Create a public kernel
  --new                 Create a new kernel, if a kernel with the same name exists
  --no-browser          Don't open a browser window automatically
  --strip-output        Clear output cells before uploading notebook (useful for large files)
  --prefix PREFIX       Prefix added to kernel title to easy identification (defaults to 'kr/')

Python API

You can also use the library form a Python script or Jupyter notebook. It can be imported as kernel_run.

from kernel_run import create_kernel

create_kernel('path/to/notebook.ipynb', public=True, no_browser=True)
# Kernel created successfully: https://www.kaggle.com/aakashns/kr-notebook/edit

The arguments to create_kernel are identical to the CLI options:

def create_kernel(path_or_url, public=False, no_browser=False, new=False,
                  strip_output=False, prefix='kr/', creds_path=None):
    """Instantly create and run a Kaggle kernel from a Jupyter notebook (local file or URL)

    Arguments:
        path_or_url (string): Path/URL to the Jupyter notebook
        public (bool, optional): If true, creates a public kernel. A private kernel
            is created by default.
        no_browser (bool, optional): If true, does not attempt to automatically open
            a browser tab to edit the created Kernel
        new (bool, optional): If true, creates a new Kernel by adding a random
            5-letter string at the end of the title
        prefix (string, optional): A prefix added to the Kernel title, to indicate that
            the Kernel was created using kernel-run
        creds_path (string, optional): Path to the 'kaggle.json' credentials file
            (defaults to '~/.kaggle/kaggle.json')
        strip_output (bool, optional): Clear output cells before uploading notebook.
    """

Credits

Developed with love by the Jovian team ( https://www.jvn.io )! Contributions welcome.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].