Git Product home page Git Product logo

jut's Introduction

jut - JUpyter notebook Terminal viewer.

The command line tool view the IPython/Jupyter notebook in the terminal.

Install

pip install jut

Usage

$jut --help
Usage: cli.py [OPTIONS] PATH

Options:
  -he, --head INTEGER RANGE  Display first n cells. Default is 10
  -t, --tail INTEGER RANGE   Display last n cells
  -p, --single-page          Should the result be in a single page?
  -f, --full-display         Should all the contents in the file displayed?
  --force-colors             Force colored output even if stdout is not a
                             terminal

  -s, --start INTEGER RANGE  Display the cells starting from the cell number
  -e, --end INTEGER RANGE    Display the cells till the cell number
  --exclude-output-cells     Exclude the notebook output cells from the output
  --no-cell-border           Don't display the result in a cell with border
  --help                     Show this message and exit.

ASCIICinema Demo (First version)

asciicast

Note: Command line arguments may be different, use jut --help to get upto date command line options

Display first five cells

jut-head-example

Display last five cells

jut-tail-example

Download the file and display first five cells

jut-download-url

Usage

$jut debug/file.ipynb
...
$jut https://raw.githubusercontent.com/fastai/fastbook/master/06_multicat.ipynb --tail 10
...

jut's People

Contributors

kracekumar avatar deepsourcebot avatar the-compiler avatar

Stargazers

 avatar Lewis Brown avatar Bendeguz Seres avatar Achim Staebler avatar Henry Goodwin avatar Jiahao Ji avatar Emanuele Sabetta avatar  avatar Jason Wohlgemuth avatar Tae-Geun Kim avatar Cristian avatar Naveen Michaud-Agrawal avatar Altynbek Isabekov avatar David Kuda avatar  avatar Marin avatar Abhishek Anil Deshmukh avatar  avatar  avatar Jie avatar André Roberge avatar Angus Hollands avatar Alastair Smith avatar Bill Metangmo avatar John ZuHone avatar Josiah Outram Halstead avatar tam kien duong avatar Chyld Medford avatar Paulo S. Costa avatar  avatar  avatar Pypeaday avatar Jason Graham avatar  avatar  avatar Hans Fangohr avatar mg20400 avatar Felix Rosencrantz avatar Andrey Stromnov avatar Alexey Strokach avatar Martin Bučko avatar Christian Ledermann avatar Joris avatar Fredrik Sjöstrand avatar Raju Ghorai avatar Patrick Park avatar Dennis Lee avatar Dominik Böhler avatar David Fokkema avatar Scott Thompson avatar Chris Liu avatar Semyon avatar Vadim Velicodnii avatar Nitin Madnani avatar Paul Jacobson avatar Murilo Cunha avatar Rhet Turnbull avatar Juan Luis Cano Rodríguez avatar Billy Rowell avatar Taiki Kanda avatar Grzegorz Bokota avatar Christopher Tyler avatar Delius avatar Michael Aye avatar Francis T. O'Donovan avatar Sidharth Arya avatar Ewen Le Bihan avatar Ben Chuanlong Du avatar Sam Foreman avatar Julius Kibunjia avatar Puneeth Chaganti avatar  avatar Pechi avatar ebigram avatar édith avatar Vaibhav Sagar avatar Adrien avatar Lin Taylor avatar mikedeltalima avatar Maryanne Wachter avatar dee larkin avatar Aaryan Porwal avatar Pol Pastells avatar Jiayi (Jess) Xu avatar Martin Skarzynski avatar Christophe Cauet avatar Guillaume Delevoye avatar Joachim Rosskopf avatar Oliver Mannion avatar Sean Pedersen avatar Maxime Borry avatar David Nicholson avatar Pierre Poulain avatar Darius Morawiec avatar Noam  Vergain avatar Tim Head avatar Gosuke Shibahara avatar Bruno Ruas De Pinho avatar  avatar Mark Keller avatar

Watchers

Noam  Vergain avatar  avatar James Cloos avatar  avatar mikedeltalima avatar  avatar

jut's Issues

Add pagination support or helping out to connect with `less -R` and have colors survive

I'm finding that even if I use less -R, when paginating jut's output I lose color highlights, not sure why... But given that your typical notebook document is long-ish, I would suggest adding pagination support less-Style, if it's not too hard...

Alternatively, figure out a way if possible to make it so coloring survives through less, which would save you from having to reimplement less's features (I'm sure if you add pagination, people will then want search, regexes, etc, and you'd end up having to reinvent less itself :)

Make default call mode work for `jut file.ipynb` without requiring `-i` option

Great tool, thanks! I just discovered it thanks to @davidbrochart's ping on an nbterm issue. Delighted to see more terminal-based tools evolving to help us work with notebooks when a full GUI isn't needed.

Quick suggestion: I think the most common use case is simply "show me this file", so I think it would be a nice usability improvement to allow jut filename.ipynb work automatically without further flags needed. This amounts to making -i the default behavior.

You could further auto-detect remote urls with a regex along the lines of qualifier:://path (I haven't toyed with that but I'm sure they exist) to allow the omission of --url too, but I see that as secondary.

In any case, thanks again!

Strip vertical bars from displayed output

Selecting and copying blocks within the reported output includes the | symbol, which makes it tedious to strip out these symbols to get the valid embedded Python code. The visual display is great, but sometimes it makes working with the output in the terminal tedious.

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.