All Projects → trsvchn → colab-badge-action

trsvchn / colab-badge-action

Licence: MIT license
GitHub Action that generates "Open In Colab" Badges for you

Programming Languages

python
139335 projects - #7 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to colab-badge-action

action-ansible-playbook
⚙️ A GitHub Action for running Ansible playbooks
Stars: ✭ 133 (+786.67%)
Mutual labels:  action, github-actions
Hello-Kaggle-Guide-KOR
Kaggle을 처음 접하는 사람들을 위한 문서
Stars: ✭ 140 (+833.33%)
Mutual labels:  jupyter, notebook
ipychart
The power of Chart.js with Python
Stars: ✭ 48 (+220%)
Mutual labels:  jupyter, notebook
mercury
Mercury - data visualize and discovery with Javascript, such as apache zeppelin and jupyter
Stars: ✭ 29 (+93.33%)
Mutual labels:  jupyter, notebook
hugo-action
Commands to help with building Hugo based static sites
Stars: ✭ 65 (+333.33%)
Mutual labels:  action, github-actions
swift-colab
Swift kernel for Google Colaboratory
Stars: ✭ 50 (+233.33%)
Mutual labels:  jupyter, colab
python ml tutorial
A complete tutorial in python for Data Analysis and Machine Learning
Stars: ✭ 118 (+686.67%)
Mutual labels:  jupyter, notebook
setup-jdk
(DEPRECATED) Set up your GitHub Actions workflow with a specific version of AdoptOpenJDK
Stars: ✭ 32 (+113.33%)
Mutual labels:  action, github-actions
biojupies
Automated generation of tailored bioinformatics Jupyter Notebooks via a user interface.
Stars: ✭ 96 (+540%)
Mutual labels:  jupyter, notebook
jest-github-action
Jest action adding checks with annotations to your pull requests and coverage table as comments
Stars: ✭ 134 (+793.33%)
Mutual labels:  action, github-actions
picatrix
Picatrix is a library designed to help security analysts in a notebook environment, such as colab or jupyter.
Stars: ✭ 35 (+133.33%)
Mutual labels:  jupyter, colab
ssh2actions
Connect to GitHub Actions VM via SSH for interactive debugging
Stars: ✭ 62 (+313.33%)
Mutual labels:  action, github-actions
clojure-dependency-update-action
A simple GitHub Actions job to create Pull Requests for outdated dependencies in clojure projects
Stars: ✭ 37 (+146.67%)
Mutual labels:  action, github-actions
observable-jupyter
Embed visualizations and code from Observable notebooks in Jupyter
Stars: ✭ 27 (+80%)
Mutual labels:  jupyter, notebook
verify-linked-issue-action
A GitHub action that verifies your pull request contains a reference to an issue.
Stars: ✭ 18 (+20%)
Mutual labels:  action, github-actions
rubocop-linter-action
Rubocop Linter Action: A GitHub Action to run Rubocop against your code!
Stars: ✭ 86 (+473.33%)
Mutual labels:  action, github-actions
upload-to-discord
A GitHub Action that uploads a file to Discord channel.
Stars: ✭ 44 (+193.33%)
Mutual labels:  action, github-actions
dart-package-publisher
Action to Publish Dart / Flutter Package To https://pub.dev When you need to publish a package, just bump the version in pubspec.yaml
Stars: ✭ 45 (+200%)
Mutual labels:  action, github-actions
actions
Collection of repetitive GitHub Actions
Stars: ✭ 12 (-20%)
Mutual labels:  action, github-actions
assign-one-project-github-action
Automatically add an issue or pull request to specific GitHub Project(s) when you create and/or label them.
Stars: ✭ 140 (+833.33%)
Mutual labels:  action, github-actions

Colab Badge GitHub Action

Unit Tests codecov

Adds "Open in Colab" badges to Jupyter Notebooks and Markdown files. Updates badges for renamed or moved notebooks.

Usage

Badge Tag

  • Use {{ badge }} tag to generate a badge for the notebook containing this tag (self-linking). Works only for Jupyter notebooks.

The following options work for both Jupyter and Markdown files (new in v4):

  • Use {{ badge nb_path }} tag to generate a badge for a local notebook nb_path, and insert it to the file containing that tag (tag will be replaced with generated badge code). e.g. {{ badge dir1/dir2/nb.ipynb }}.
  • Use {{ badge /nb_path }} tag to generate a badge for a remote (located in another repo) notebook /nb_path, and insert it to the file containing that tag. e.g. {{ badge /usr2/repo/blob/main/nb.ipynb }}. You can use full link (url) as well: {{ badge https://github.com/usr2/repo/blob/main/nb.ipynb }}.
  • Use {{ badge //drive/nb_id }} tag to generate a badge for google drive notebook, and insert it to the file containing that tag. e.g. {{ badge //drive/abcde }}

Note: repo name and branch name are omitted for local notebooks, for notebooks from another repo only hostname can be ommited. In both cases file extension .ipynb can be omitted.

Add tag

Action will create a badge for you:

With badge

Example Workflow

A workflow file for adding/updating badges for notebooks in a repo:

name: Example Workflow
on: [push]

jobs:
  badges:
    name: Example Badge Job
    runs-on: ubuntu-latest
    steps:
      - name: Checkout first
        id: checkout
        uses: actions/checkout@v2

      - name: Add/Update badges
        id: badges
        uses: trsvchn/colab-badge-action@v4
        with:
          check: "all"
          target_branch: main
          target_repository: user/user-repo
          update: true

      - name: Use your favorite commit&push action here
        uses: action/commit@push
        with: ...

Inputs

Input Description Default
check Check every notebook/markdown: "all" or just modified files from a current commit: "latest". "all"
target_branch Branch that the badge will target. "" (current branch)
target_repository Repo that the badge will target. "" (current repository)
update Update a badge if a piece of information relevant to it has changedL true. With false inserts badges with no further updates (ignores changes). Works only for notebooks. true
verbose Verbose mode. Print some information during execution. false
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].