Coder Social home page Coder Social logo

asekuro's People

Contributors

barend-xebia avatar cobac avatar fokko avatar hgrif avatar jczuurmond avatar koaning avatar nielszeilemaker avatar rensdimmendaal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

asekuro's Issues

switch to click

using subprocess for testing can be a tad bit ... wonky. instead it would be better to use click such that we can offer some more strict checking mechanisms.

put it on pypy

might be better to make sure people can install it too.

klopt also needs to accept python files

currently klopt only allows the first thing to be listed to be a notebook followed by python scripts. this feels like a limit we won't need. klopt needs to run files in order to check what is going wrong.

? issues

asekuro willen currently break without warning if it sees the following pattern while performning the check command.

image

you cannot pass it just a file it needs a path

(venv) ➜  01-streaming-algorithms git:(timeseries-nuon-revamp) ✗asekuro test 01-01-introduction-streaming.ipynb 
2018-07-31 13:50:02,183 [commandline.py:test_notebook:113] DEBUG - about to test 01-01-introduction-streaming.ipynb
2018-07-31 13:50:02,183 [commandline.py:_cwd:24] DEBUG - directory of script calling /Users/vincentwarmerdam/Development/accelerator/lecture09_timeseries/lecture/01-streaming-algorithms
Traceback (most recent call last):
  File "/Users/vincentwarmerdam/Development/accelerator/venv/bin/asekuro", line 11, in <module>
    sys.exit(main())
  File "/Users/vincentwarmerdam/Development/accelerator/venv/lib/python3.6/site-packages/asekuro/commandline.py", line 129, in main
    'clean': clean_notebook
  File "/Users/vincentwarmerdam/Development/accelerator/venv/lib/python3.6/site-packages/fire/core.py", line 127, in Fire
    component_trace = _Fire(component, args, context, name)
  File "/Users/vincentwarmerdam/Development/accelerator/venv/lib/python3.6/site-packages/fire/core.py", line 366, in _Fire
    component, remaining_args)
  File "/Users/vincentwarmerdam/Development/accelerator/venv/lib/python3.6/site-packages/fire/core.py", line 542, in _CallCallable
    result = fn(*varargs, **kwargs)
  File "/Users/vincentwarmerdam/Development/accelerator/venv/lib/python3.6/site-packages/asekuro/commandline.py", line 114, in test_notebook
    folder, filename = _cwd(nbpath)
  File "/Users/vincentwarmerdam/Development/accelerator/venv/lib/python3.6/site-packages/asekuro/commandline.py", line 27, in _cwd
    os.chdir(folder)
FileNotFoundError: [Errno 2] No such file or directory: ''

it cannot handle wildcards

preferably we have a nice way to just give it a folder or certain files to run. currently we have to run file by file. this is a nice to have, i don't mind being explicit. but we do want to have it at some point.

add ignore flags

for stability reasons it would be nice if we can add a flag to klopt and test to remove ipython magic cells in a clean manner.

Replacing cells with %load fails if the cells contain an additional new line

A cell with

%load bla.py

Will give a FileNotFoundError: [Errno 2] No such file or directory: 'bla.py\n'.

On one hand, we might only want to have cells with a nice single line with %load. On the other hand, we often get feedback after a pipeline of 15 mins so it could be nice to be more lenient (and I don't know what will happen if you have a trailing whitespace). A .strip()here could save some hassle.

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.