Skip to content

Instantly share code, notes, and snippets.

View aktech's full-sized avatar
🏠

Amit Kumar aktech

🏠
View GitHub Profile
@aktech
aktech / coiled-scheduler-logs.txt
Created March 29, 2021 19:08
coiled-scheduler-logs
[ 160.964880] cloud-init[1391]: ng dask ... extracting (42.7%)

Pulling dask ... extracting (42.8%)

Pulling dask ... extracting (43.6%)

Pulling dask ... extracting (44.3%)

Pulling dask ... extracting (45.1%)

@aktech
aktech / dask-error.md
Created March 29, 2021 21:48
dask-error
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-10-3aaabe578c05> in <module>
----> 1 out.compute(scheduler="single-threaded")

~/.conda/envs/sgkit-gpu-new/lib/python3.8/site-packages/dask/base.py in compute(self, **kwargs)
    281         dask.base.compute
    282         """
--> 283         (result,) = compute(self, traverse=False, **kwargs)
@aktech
aktech / sgkit-gpu-coiled.ipynb
Created April 10, 2021 11:17
Sgkit GPU Coiled Experiment
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aktech
aktech / qhub-dask-worker-environment-variable-example.ipynb
Created May 24, 2021 17:33
qhub-dask-worker-environment-variable-example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aktech
aktech / linux_commits_bar_chart_race.py
Created June 17, 2021 17:12
Linux Commits Bar Chart Race
"""A script to generate a Bar Chart race graph from the linux git commits
commits.txt was generated via:
git log --format=%ai$%an > commits.txt
Pre-requisite:
==============
conda install -c conda-forge bar_chart_race ffmpeg imagemagick pandas
Instructions to run:
@aktech
aktech / indexing.ipynb
Created January 9, 2022 05:25
array api indexing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aktech
aktech / timer.py
Created December 6, 2022 23:25
timer
import time
import logging
def timer(func):
def inner(*args, **kwargs):
start = time.time()
rv = func(*args, **kwargs)
logger.info(f"Time taken to execute {func}: {time.time() - start}")
return rv
@aktech
aktech / delhi-geojson.json
Created March 17, 2023 01:04
delhi-geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aktech
aktech / panel_tailwind_button.py
Created August 17, 2023 15:44
Holoviz Panel Tailwind Button
import panel as pn
import param
class CustomButton(pn.reactive.ReactiveHTML):
clicks = param.Integer()
_template = """\
<div id="pn-container" style="height:100%;width:100%">
<button id="button" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.