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
#!/usr/bin/env python | |
import dash | |
import dash_html_components as html | |
import dash_core_components as dcc | |
external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css'] | |
app = dash.Dash(__name__, external_stylesheets=external_stylesheets) |
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 pandas as pd | |
import pdfkit | |
df=pd.DataFrame(columns= ['col 1', 'col 2']) | |
df.loc[0]=[1,2] | |
df.loc[1]=[3,4] | |
df.loc[3]=["2020-06-05 00:50:22.953896: E tensorflow/stream_executor/cuda/cuda_driver.cc:806] failed to allocate 225.53M (236486144 bytes) from device: CUDA_ |
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
#!/usr/bin/env python | |
import sqlite3 | |
from os.path import abspath | |
import sys | |
conn= sqlite3.connect(abspath(sys.argv[1])) | |
cur = conn.cursor() | |
cur.execute("SELECT * FROM tasks") |
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
#!/usr/bin/env python | |
import base64, io | |
import dash | |
import dash_core_components as dcc | |
import dash_html_components as html | |
from dash.dependencies import Input, Output | |
from dash_table import DataTable | |
from dash.exceptions import PreventUpdate | |
import plotly.graph_objects as go |
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 dash | |
import base64 | |
import dash_html_components as html | |
from dash.dependencies import Input, Output | |
import dash_core_components as dcc | |
app = dash.Dash(__name__) | |
test_png = r'C:\Users\tashr\Downloads\20190318_114007.jpg' |
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
#!/usr/bin/env python | |
import vtk | |
import sys | |
import numpy as np | |
from vtk.util.numpy_support import vtk_to_numpy, numpy_to_vtk | |
infile=sys.argv[1] | |
print(infile) |
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
#!/usr/bin/env python | |
import logging | |
import time | |
import luigi | |
logger = logging.getLogger(__name__) | |
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
#!/usr/bin/env python | |
from matplotlib.backends.backend_pdf import PdfPages | |
from matplotlib import pyplot as plt | |
from conversion import read_bvals | |
import nibabel as nib | |
import sys | |
import numpy as np | |
from os.path import join as pjoin |
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
#!/usr/bin/env python | |
import tornado.ioloop | |
import tornado.web | |
import tornado.httpserver | |
# access as http://localhost:8888/tornado/ | |
def make_app(): | |
settings = {} |