Skip to content

Instantly share code, notes, and snippets.


Thanakom sangnetra prideloki

View GitHub Profile
c = get_config()
### If you want to auto-save .html and .py versions of your notebook:
# modified from:
import os
from subprocess import check_call
def post_save(model, os_path, contents_manager):
"""post-save hook for converting notebooks to .py scripts"""
if model['type'] != 'notebook':
return # only do this for notebooks
View nginx.conf
server { listen 80;
access_log /var/log/;
error_log /var/log/;
root /var/www/apps/;
charset utf-8;
location / {
rewrite ^ https://$host$request_uri? permanent;
You can’t perform that action at this time.