This file contains 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
from setuptools import setup | |
setup( | |
name="junix", | |
version="0.1.4", | |
author="Damien Marlier", | |
author_email="[email protected]", | |
description="Utils to export images from Jupyter notebook", | |
packages=["junix"], | |
entry_points={"console_scripts": ["junix = junix.cli:export_images"]}, |
This file contains 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
from typing import Optional | |
from junix import junix | |
import click | |
@click.command() | |
@click.option("-f", "--filepath", "filepath", required=True) | |
@click.option("-o", "--output_dir", "output_dir", default=None) | |
@click.option("-p", "--prefix", "prefix", default=None) | |
def export_images( | |
filepath: str, output_dir: Optional[str] = None, prefix: Optional[str] = None |
This file contains 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
from cryptography.hazmat.primitives.asymmetric import padding, rsa | |
from cryptography.hazmat.backends import default_backend | |
from cryptography.hazmat.primitives import hashes | |
from urllib.parse import urlparse | |
from cryptography import x509 | |
import requests | |
import base64 | |
def is_sns_notification_valid(body): |
This file contains 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 base64 | |
import json | |
import os | |
from typing import Dict, List, Optional | |
def get_images(notebook_dict: Dict) -> List[Dict]: | |
return [ | |
{ |
This file contains 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 numpy as np | |
import pandas as pd | |
import matplotlib | |
import matplotlib.cm as cm | |
import matplotlib.colors as cl | |
import matplotlib.pyplot as plt | |
import matplotlib.patches as patches | |
import itertools | |
import time | |
import sys |