Skip to content

Instantly share code, notes, and snippets.

View Zsailer's full-sized avatar

Zachary Sailer Zsailer

View GitHub Profile
@Zsailer
Zsailer / Lorenz.ipynb
Last active April 4, 2023 04:09
JupyterLab 4.0 with RTC and demo Notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Zsailer
Zsailer / jsonschema_memory_leak.py
Created July 7, 2022 15:13
Memory leak in jsonschema
import jsonschema
import os
import psutil
import matplotlib.pyplot as plt
schema = {
"$id": "https://example.com/person.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
@Zsailer
Zsailer / handlers.py
Created May 5, 2022 16:54
Example of async tasks with callback queue
import json
from jupyter_server.extension.handler import ExtensionHandlerMixin
from jupyter_server.base.handlers import APIHandler
import tornado
import asyncio
async def doing_something():
import pathlib
from jupyter_core.paths import jupyter_config_path
from traitlets.config.loader import (
JSONFileConfigLoader
)
def configd_path(
config_dir=None,

Keybase proof

I hereby claim:

  • I am zsailer on github.
  • I am zsailer (https://keybase.io/zsailer) on keybase.
  • I have a public key ASCXMK5BsVEDprErNEKGGOjuwLVXa-qYdlYRG12Pmb8QAQo

To claim this, I am signing this object:

@Zsailer
Zsailer / demo.ipynb
Last active August 29, 2019 19:48
altair demo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
matplotlib
numpy
altair
@Zsailer
Zsailer / schemaorg-pydantic.ipynb
Last active May 11, 2024 15:17
Define and validate schema.org structured data in Python with Pydantic
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Zsailer
Zsailer / jupyter-dev-setup.md
Last active April 22, 2021 15:29
Managing your Jupyter development workflow

Managing your Jupyter development workflow

The following directions explain how to setup your Jupyter development environment. The goal is to isolate each one of your projects in their own "virtual environment" (a.k.a. conda environment), so you can easily switch between projects without contaminating your installations, dependencies, etc.

Table of Contents

@Zsailer
Zsailer / webdav.py
Last active September 18, 2019 22:23
wsgidav, webdav-client3, and tornado
import os
from tornado import web, wsgi, httpserver, ioloop
from wsgidav.wsgidav_app import WsgiDAVApp
from webdav3.client import Client
host = '127.0.0.1'
port = 8081
path = os.path.join(os.getcwd(), 'hubshare')