Skip to content

Instantly share code, notes, and snippets.

View pbugnion's full-sized avatar

Pascal Bugnion pbugnion

View GitHub Profile
@pbugnion
pbugnion / 01-README.md
Last active February 4, 2020 13:02
Add multiple users to a Faculty platform project

Add multiple users by email to a Faculty project

This script adds multiple users by email to a Faculty project. The users need to exist in the platform: it does not invite users.

To use this:

  1. Create the project you want to invite users to.
  2. Create a Jupyter server in that project.
  3. Download add-users-by-email.py in the project workspace by running, e.g.
@pbugnion
pbugnion / 01-aws-credentials-management-with-pass.md
Last active January 21, 2020 07:46
Manage AWS credentials with pass

Managing multiple AWS credentials with pass

These code snippets demonstrate how to build shell functions to manage AWS credentials stored in pass.

See the accompanying blog post for full details on how to use these.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pbugnion
pbugnion / 01-install-theia-on-sherlockml.md
Last active June 19, 2019 19:58
Installing theia-ide on SherlockML

Installing Theia on SherlockML

Theia is an IDE that emulates VS code, but with a browser client-server model, rather than a native app. This makes it a natural fit for SherlockML.

@pbugnion
pbugnion / 01_readme.md
Last active September 14, 2021 05:36
Airflow on SherlockML

Airflow on SherlockML

Apache Airflow is an open source tool for creating task pipelines. It lets you define sets of tasks and dependencies between those tasks, and then takes care of the execution.

Airflow can be a useful add-on to SherlockML: you can schedule

@pbugnion
pbugnion / 01_multi_select_widget_readme.md
Last active September 28, 2024 11:00
Multiple checkbox selection with searching with ipywidgets

Multiple selection with checkboxes and search field

Often, you want the user to choose n options (where n is small-ish) from a very large (hundreds or thousands) number of possibilities. Good UX around this dictates that the user should be able to search for the options they want.

This gist puts together a minimal example of binding a search field with multiple checkboxes using ipywidgets.

Usage

@pbugnion
pbugnion / ipython_notebook_in_git.md
Last active October 22, 2023 12:25
Keeping IPython notebooks under Git version control

This gist lets you keep IPython notebooks in git repositories. It tells git to ignore prompt numbers and program outputs when checking that a file has changed.

To use the script, follow the instructions given in the script's docstring.

For further details, read this blogpost.

The procedure outlined here is inspired by this answer on Stack Overflow.