Skip to content

Instantly share code, notes, and snippets.

View jasongrout's full-sized avatar

Jason Grout jasongrout

View GitHub Profile
@jasongrout
jasongrout / run_once.py
Created September 29, 2012 17:46
run once decorator
# from http://stackoverflow.com/questions/4103773/efficient-way-of-having-a-function-only-execute-once-in-a-loop
from functools import wraps
def run_once(f):
"""Runs a function (successfully) only once.
The running can be reset by setting the `has_run` attribute to False
"""
@wraps(f)
def wrapper(*args, **kwargs):
if not wrapper.has_run:
@jasongrout
jasongrout / fiddle.css
Last active January 13, 2023 21:46
jsfiddle of codemirror live widgets
.widget {
border: 1px solid
}
.widget-templates {display:none}
div.widget {display: inline-block;}
.tablewidget table {border-collapse: collapse}
.tablewidget input {
margin: 0;
border:0px}
.tablewidget table td {
diff --git a/packages/schema/jupyterwidgetmodels.latest.md b/packages/schema/jupyterwidgetmodels.latest.md
index 52b12d4c..eb3948b5 100644
--- a/packages/schema/jupyterwidgetmodels.latest.md
+++ b/packages/schema/jupyterwidgetmodels.latest.md
@@ -1,28 +1,38 @@
# Model State
-This is a description of the model state for each widget in the core Jupyter widgets library. The model ID of a widget is the id of the comm object the widget is using. A reference to a widget is serialized to JSON as a string of the form `"IPY_MODEL_<MODEL_ID>"`, where `<MODEL_ID>` is the model ID of a previously created widget of the specified type.
+This is a description of the model state for each widget in the core Jupyter
+widgets library. The model ID of a widget is the id of the comm object the
@jasongrout
jasongrout / CustomizeJLabTheme.ipynb
Created June 20, 2018 19:35
JupyterLab Theme Customization
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jasongrout
jasongrout / JupyterConReviewerAssignments.ipynb
Last active July 24, 2020 04:25
JupyterCon 2020 Reviewer Assignments
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jasongrout
jasongrout / JupyterUpdateScipy2018.md
Created May 8, 2019 17:58
Jupyter Update Scipy 2018

Jupyter updates

Project Jupyter develops open source software, standardizes protocols for interactive computing across dozens of programming languages, and defines open formats for communicating results with others.

Jupyter and the community has continued to grow in breadth and depth. There have been many new exciting developments from the community. For example, the Xeus C++ kernel framework is making many interesting kernels possible, complete with even widgets support, such as an interactive C++ kernel, and a new R kernel called Juniper.

From the community notebook frontends, nteract now runs in the web browser. Cocalc has a notebook frontend that supports real-time collaboration. BeakerX just released 1.0, with JVM and Spark support and polyglot programming and culminates their transition to being built on the Jupyter notebook and soon JupyterLab codebases.

We welcome all of these projects and many more from the community.

This release contains
It has been 229 days since the last release. In this release, we closed [213 issues](https://github.com/ipython/ipywidgets/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20closed%3A%222016-07-14%20..%202017-02-28%22%20) and [309 pull requests](https://github.com/ipython/ipywidgets/pulls?q=is%3Apr+milestone%3A6.0+is%3Aclosed) with [1074](https://github.com/ipython/ipywidgets/compare/5.2.2...6.0.0) commits, of which 732 are not merges.
# Github commit list: https://github.com/ipython/ipywidgets/compare/5.2.2...6.0.0
# merges since in 6.0.0, but not 5.2.2, which is a rough list of merged PRs
git log --merges 5.2.2..6.0.0 --pretty=oneline
# Github issues in milestone 6.0 (rough verification, but we could also write a program that pulled all of the PRs, examined a commit in each one, and did `git tag --contains <commit number>` to see if that PR is included in a 5.x release
#!/usr/bin/env python3
# TODO:
# [X] initialize only the modules we are using
# [X] Display a single specific picture from the 2011 folder
# [X] Regenerate pics for 1080p
# Minimum Viable Product (MVP)