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")')
View nbtoken.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View test.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Dockerfile
FROM continuumio/miniconda3:4.3.27
# COPY environment.yml environment.yml
RUN conda install -y conda==4.4.8
RUN conda info
RUN conda list
COPY nopython.yml nopython.yml
COPY withpython.yml withpython.yml
RUN conda env update -n root -f nopython.yml \
&& conda env update -n root -f withpython.yml \
View Dockerfile
FROM ubuntu:17.10
RUN apt-get update && apt-get -y install supervisor python3-dev python3-pip nodejs npm locales
RUN python3 -m pip install jupyterhub notebook
RUN npm install -g configurable-http-proxy
RUN python3 -m pip install jupyterhub-dummyauthenticator jupyterhub-simplespawner
EXPOSE 8000
ADD jupyterhub_config.py /srv/jupyterhub_config.py
ADD jupyterhub.conf /etc/supervisor/conf.d
ADD start-jupyterhub.sh /srv/start-jupyterhub.sh
WORKDIR /srv
View travis-cf-status.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Untitled.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gitter-logs
#!/usr/bin/env python3
"""
Collect gitter messages that start with "!log" and log them in markdown bullet list with dates
"""
from datetime import datetime, timezone, timedelta
import json
import os
import sys
View check-binder
#!/usr/bin/env python3
"""Script to check binder deployment status
checks:
- binderhub chart has latest hub chart
- mybinder has latest binderhub chart
- mybinder has latest repo2docker image
- mybinder prod is up-to-date with staging
"""