Skip to content

Instantly share code, notes, and snippets.

this is a test download
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ericdill
ericdill / render_env.py
Last active October 20, 2021 20:22
Render the dependency graph for your conda environment (needs graphviz!)
import json
import glob
import os
from os.path import join, basename
# install this with "conda install -c conda-forge python-graphviz"
import graphviz as gv
# path to your conda environment
path = os.environ.get('CONDA_PREFIX')
if path is None:
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[hub]
protocol = ssh
[user]
email = <email>
name = Eric Dill
signingkey = BD2FA590
@ericdill
ericdill / feedstocks-to-maintainers.json
Created March 13, 2021 18:20
conda-forge maintainers-to-feedstocks mapping
[
{
"execution_date": "2021-03-13 18:19:21.443051"
},
{
"": [
"jupyter-dashboards-server"
],
"0ncorhynchus": [
"ecell4_base"
name: ds-env
channels:
# - https://conda.prd.dsci.zones.dtn.com/conda/dtn
- ericdill
- conda-forge
- defaults
dependencies:
# Base, leave these at the top
- python=3.8
- pip
4472 2020-09-16 08:04 ca s3contents37
4473 2020-09-16 08:05 make minio
4474 2020-09-16 08:05 vi Makefile
4475 2020-09-16 08:05 git st
4476 2020-09-16 08:05 git diff
4477 2020-09-16 08:05 git diff HEAD
4478 2020-09-16 08:05 git diff HEAD~
4479 2020-09-16 08:05 vi Makefile
4480 2020-09-16 08:06 vi .github/workflows/test.yml
4481 2020-09-16 08:06 make minio
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"You need the following libraries to make this work:\n",
"Run conda env create -f this_output.yaml\n",
"```\n",
"name: my-env\n",
# -*- coding: utf-8 -*-
""" Deletes all tweets below a certain retweet threshold.
"""
import tweepy
from datetime import datetime
# Constants
CONSUMER_KEY = ''
$ conda-lock -f environment.yaml -p linux-64 ⇡ master :: 1d :: ⬡
generating lockfile for linux-64
The following specifications were found to be incompatible with each other:
Output in format: Requested package -> Available versions
Package requests conflicts for:
conda -> requests[version='>=2.12.4|>=2.12.4,<3|>=2.18.4,<3|>=2.5.3']
s3contents -> requests
hybridcontents -> requests[version='>=2.7.0']