Giter VIP home page Giter VIP logo

chime's Introduction

Hello there ๐Ÿ‘‹

I'm Max, a data scientist working in the climate industry at Carbonfact.

I lead The Fellowship of Online Machine Learning, which is a group of people who enjoy researching and implementing online algorithms. In particular, we develop and maintain River.

I teach data science to graduate students at the Toulouse School of Economics. You can find the course content here.

chime's People

Contributors

alexklapheke avatar dchen327 avatar maxhalford avatar paw-lu avatar tayjaybabee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

chime's Issues

No sound, error: "aplay: not found"

Hey there, I love chime! I'm having troubles running it on a remote server. This is what I get when I call chime.info(sync=True, raise_error=True):

RuntimeError: Command 'aplay /home/mgrasso/miniconda3/envs/pyphi/lib/python3.7/site-packages/themes/zelda/info.wav' returned non-zero exit status 127. stderr: /bin/sh: 1: aplay: not found

Any tips? Thanks in advance,
MG

Add a way to add optional arguments to run commands

I have multiple sound cards in my computer, so I'd like a way to specify which card to play sounds with via chime. I've hacked in a fix that works for me, but I could see this being useful for others as well.

...
THEME = _get_default_theme(config_path, fallback_theme='chime')
RUN_ARGS = ''
...
#run(f'aplay {path}', sync, raise_error)
run(f'aplay {RUN_ARGS} {path}', sync, raise_error)

Now in my code I can
...
import chime
chime.RUN_ARGS = '--device sysdefault:CARD=PCH'

I'm not suggesting this is how it should be done, but rather the requested functionality. Thanks for the library!

Add chime to Conda/Anaconda command line actions

I have raised an Feature Request here with Conda/Anaconda to add this as an option on installs/creates etc. I haven't given it any though, but maybe there is a wrapper or call that can be made before a conda command that can make these alerts. Thought I'd raise it here to see if it was a valid idea!

Motivations - The number of times I have forgotten the -y argument and been pending on a large install is terrifying!

V cool package btw! Thx

Can't hear any sounds on Pop! OS 20.04

Steps I took

  • install in venv with pip3 install chime
  • open python3 shell
  • import chime and run chime.success()
  • can't hear anything at all (no other audio is playing, audio is definitely working)

I can definitely help test some stuff if needed!

[enhancement] exit code parameter for cli

Been thinking of a way to automatically trigger success/error sounds based on whether the previous command succeeded on the terminal.

One way to accomplish this would be an --exit-code (-e) argument to be used as such:

% ls; chime --exit-code=$?

$? in bash and zsh stores the exit code of the previous command. An exit-code argument would allow the user to input it into chime, triggering an error on a non-zero exit code, success otherwise.

To be honest I wish there was a more automated way to handle this, but this is the best I can come up with at the moment!

Add a `chime` command for cli usage

Cool library!

Would be great if we named the command so you could call the script from the command line using

% chime

instead of having to use

% python -m chime

This would also allow users to install the library using installers like pipx if they were interested in using it as a command-line tool.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.