Skip to content

Instantly share code, notes, and snippets.

@tonyfast
tonyfast / readme.md
Last active June 6, 2021 14:48 — forked from bollwyvl/utterance.ipynb
the utterances commenting system inside of the browser only jupyterlite interactive computing interface

image

@tonyfast
tonyfast / 2021-testing-in-notebooks.ipynb
Last active February 9, 2023 22:21 — forked from ericdatakelly/2021-testing-in-notebooks.ipynb
an essay on the value and implementation of formal unit testing in jupyter notebooks
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
def task_data():
"download the sample data"
return dict(actions=["wget https://docs.google.com/uc?id=1rkoE_xoUN7YMefnUcJ-LXAlI5gU8qYLv&export=download -O test_FA.nii.gz".split()], targets=["test_FA.nii.gz"])
@tonyfast
tonyfast / LICENSE
Created June 19, 2020 01:44 — forked from bollwyvl/LICENSE
Towards a JSON Schema for the Language Server Protocol
Copyright 2019 dead pixels collective
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
def plot_loglog(self, country, freq="2d"):
newdf = self.get_country(country)
return (
newdf.resample(freq)
.mean()
.hvplot.scatter(
x="Infections",
y="Rate",
logy=True,
logx=True,
def plot_loglog(self, country, freq="2d"):
newdf = self.get_country(country)
return (
newdf.resample(freq)
.mean()
.hvplot.scatter(
x="Infections",
y="Rate",
logy=True,
logx=True,
@tonyfast
tonyfast / IFastAPI.ipynb
Created April 21, 2020 22:55 — forked from bollwyvl/IFastAPI.ipynb
IFastAPI
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tonyfast
tonyfast / IFastAPI.ipynb
Created April 21, 2020 22:55 — forked from bollwyvl/IFastAPI.ipynb
IFastAPI
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tonyfast
tonyfast / requirements.txt
Last active August 27, 2019 16:26 — forked from Zsailer/schemaorg-pydantic.ipynb
Define and validate schema.org structured data in Python with Pydantic
pydantic
rdflib
pandas
matplotlib
schemaorg
@tonyfast
tonyfast / requirements.txt
Last active August 23, 2019 19:13 — forked from nrbgt/unembed.ipynb
Unembed widget json into python
ipywidgets