Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • I ImageMatching
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Custom issue tracker
    • Custom issue tracker
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • repos
  • generated-data-platform
  • ImageMatching
  • Merge requests
  • !31

WIP: Convert the model ipython notebook to a script.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Gmodena requested to merge convert-ipynb-to-py into main Sep 08, 2021
  • Overview 0
  • Commits 9
  • Pipelines 0
  • Changes 3

Created by: gmodena

This WIP adds the capability to extract a python script from the notebook, and save it as build artifact in Github. I open this PR to collect feedback / discuss possible approaches to releasing the notebook code in a format consumable in non-interactive mode.

The changes add a new py target to Makefile (make py) that runs nbconvert on the algo notebook. The resulting script can be executed on spark with the canonical spark-submit [...] algorithm.py.

I wanted to experiment with a flow that, after a successful build, publishes the resulting artifact to a generally available location.

I've been toying with CI and added make py to the github workflow. With this change we'd generate a new script at each PR / git push, that is available under the Artifacts pane of the Action UI.

Unfortunately there is no straightforward way to generate the artifact URL for remote consumption.

Next I want to explore the capabilities of our internal Gitlab (pipelines are enabled), and eventually move the codebase there.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: convert-ipynb-to-py