Giter Club home page Giter Club logo

nbtop's Introduction

nbtop

IPython Notebook server monitor inspired by htop.

screenshot

usage

$ nbtop --help
usage: nbtop [-h] [-e] [-k] [-a] [-l] [-p] [--shutdown-all] -u URL [-v]

optional arguments:
  -h, --help         show this help message and exit
  -e, --extension    strip notebook extensions
  -k, --insecure     no verification of SSL certificates
  -a, --abs          show memory usage in absolute values (KB, MB, GB)
  -l, --links        display full notebook URLs
  -p, --passwd       prompt for notebook server password
  --shutdown-all     shutdown all notebooks on the server
  -u URL, --url URL  IPython notebook server url
  -v, --version      show program's version number and exit

installation

From pip:

$ pip install --user nbtop

From github:

$ git clone https://github.com/iiSeymour/nbtop
$ cd nbtop
$ python setup.py install

notes

nbtop uses the kernel ids of running notebooks (queried from /api/sessions) and matches them to running processes on the server. If nbtop is pointed at a remote notebook server the memory and cpu percentage will be displayed as -99.

license

MIT Copyright (c) 2015 - 2017 Chris Seymour

nbtop's People

Contributors

iiseymour avatar robintw 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nbtop's Issues

CPU Usage for Notebooks Using Multi-CPU is Capped to 100%

When I try to use nbtop to view notebooks CPU usage, I found that notebooks are using multi-threading but showed a CPU usage of 100%. But using htop, it is using around 2000%. So the notebook indication is not so accurate and misleading

Trouble running nb-top in Tmux

Hi iiSeymour,

I'm running into an issue while running nbtop in t-mux.
I have two screens open, a htop session, and a session in which I'd like to run nbtop.
When I run nbtop on localhost I get the following error

_curses.error: addstr() returned ERR

issue

nbtop shows no info if notebook server has a password

I have a password set on my jupyter server, and when I run nbtop, I just get an empty list.
It looks like this is because in session_state the response.json() fails silently when it tries to decode the html for accepting a password.

Any help would be much appreciated!

Push latest version to PyPI?

Hi @iiSeymour,

Is it possible to push the latest version of nbtop (0.3.2) to PyPI so that it can be installed easily through 'pip install'?

I've got some colleagues who'd like to use the absolute memory usage functionality that I added, but have issues installing from anywhere apart from PyPI.

Cheers,

Robin

Trouble installing nbtop

Hello I want to use the nbtop.

so I install it, but say

nbtop : command not found

how I solve it?

Thanks

image

No kernels/notebooks listed

When I run nbtop I get an empty list.

This sounds similar to #6 but:

  • I have not explicitly set a password
  • I tried pasting the jupyter server token in to -p and get invalid password! back
  • I also tried all combinations of password vs no password and -k vs no -k -- same results

This is what my inputs with -p look like:

$ jupyter notebook list
Currently running servers:
http://localhost:8888/?token=741228bd581ec74444a32c3baeef7c695ea79b6a2daf63ac :: /home/user/repos/calls

$ nbtop -p -u http://localhost:8888                                                                             
password for http://localhost:8888:
invalid password!

$ nbtop -k -p -u http://localhost:8888                                                                          
password for http://localhost:8888:
invalid password!

$ python --version
Python 3.7.2

I'm running this all in a conda environment.

This looks incredibly useful by the way -- thanks.

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.