This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#SBATCH -p p100 | |
#SBATCH --gres=gpu:1 | |
#SBATCH -c 4 | |
#SBATCH --mem=16G | |
#SBATCH --nodes=1 | |
#SBATCH --ntasks=1 | |
##SBATCH --ntasks-per-node=1 | |
#SBATCH --time=04:00:00 | |
#SBATCH --job-name=jupyter-notebook |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import requests | |
#See http://developers.zenodo.org/ to get a token | |
# You may want to change your token path | |
## Also, do not share your token, it is like a password! | |
token_file = "../token.txt" | |
token_fn = os.path.expandvars(token_file) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import multiprocessing as mp | |
import numpy as np | |
import matplotlib | |
matplotlib.use('Agg') | |
import matplotlib.pyplot as plt |