Skip to main content

Ipython extension for VDK

Project description

vdk-ipython

Ipython extension for VDK

This extension introduces a magic command for Jupyter. The command enables the user to load job_input for his current data job and use it freely while working with Jupyter.

See more about magic commands: https://ipython.readthedocs.io/en/stable/interactive/magics.html

Usage

To use the extension it must be firstly installed with pip as a python package. Then to load the extension in Jupyter the user should use:

%reload_ext vdk.plugin.ipython

And to load the VDK (Job Control object):

%reload_VDK

The %reload_VDK magic can be used with arguments such as passing the job's path with --path or giving the job a new with --name, etc.

Example

The output of this example is "myjob"

%reload_ext vdk.plugin.ipython

%reload_VDK --name=myjob

job_input = VDK.get_initialized_job_input()

job_input.get_name()

Build and testing

pip install -r requirements.txt
pip install -e .
pytest

In VDK repo ../build-plugin.sh script can be used also.

Note about the CICD:

.plugin-ci.yaml is needed only for plugins part of Versatile Data Kit Plugin repo.

The CI/CD is separated in two stages, a build stage and a release stage. The build stage is made up of a few jobs, all which inherit from the same job configuration and only differ in the Python version they use (3.7, 3.8, 3.9, 3.10 and 3.11). They run according to rules, which are ordered in a way such that changes to a plugin's directory trigger the plugin CI, but changes to a different plugin does not.

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

vdk-ipython-0.1.950282415.tar.gz (5.5 kB view details)

Uploaded Source

File details

Details for the file vdk-ipython-0.1.950282415.tar.gz.

File metadata

  • Download URL: vdk-ipython-0.1.950282415.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for vdk-ipython-0.1.950282415.tar.gz
Algorithm Hash digest
SHA256 869fc521a644f32c1ef2c81b4d3bdb8147a49c648895a9d1816af3c90bae2389
MD5 d899ad3754b65a85167f50b9f2e1a4e2
BLAKE2b-256 9d548aadfa945ca4cf0715037e2b8112f2b484c0ce026a686ab73b22ecd709d4

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