View docker-sockets.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Lorenz Differential Equations.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View math.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View math.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View topitall.sh
#!/bin/bash
# show ps in all user pods
set -euo pipefail
for pod in $(
kubectl get pod -o json -l component=singleuser-server \
| jq -r '.items[] | select(.status.phase == "Running") | .metadata.name'
); do
echo $pod
kubectl exec -it $pod -- ps -auxww
View asyncio-magic.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View evan.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View test_tornado_asyncio.py
"""Testing awaitable objects
Testing compatibility of various awaitable things
for a migration from tornado coroutines to async/await.
The main pitfall appears to be our use of `tornado.gen.maybe_future`
to wrap user-defined 'maybe async' APIs,
which works for everything *except* asyncio coroutines.
If we want to make sure things are accepted by gen.maybe_future,
View test.sh
#!/usr/bin/env bash
# show-args is a Python script that prints sys.argv[1:]
echo '$@ =' "$@"
echo 'no quotes: $@'
show-args $@
echo 'quotes: "$@"'
show-args "$@"
AT="$@"
echo 'quotes: "$AT" where AT="$@"'
show-args "$AT"
View test.py
import atexit
from jupyter_client import KernelManager
km = KernelManager()
km.start_kernel()
atexit.register(lambda *args: km.shutdown_kernel())
kc = km.client()
kc.start_channels()
kc.wait_for_ready()
kc.execute_interactive('print("hi")')