All Projects → hahnlee → Ipytracer

hahnlee / Ipytracer

Licence: bsd-3-clause-clear
📊 Algorithm Visualizer for IPython/Jupyter Notebook

Programming Languages

javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Ipytracer

Nbstripout
strip output from Jupyter and IPython notebooks
Stars: ✭ 738 (+434.78%)
Mutual labels:  ipython, jupyter-notebook, jupyter, ipython-notebook
Ansible Jupyterhub
Ansible role to setup jupyterhub server (deprecated)
Stars: ✭ 14 (-89.86%)
Mutual labels:  ipython, jupyter-notebook, jupyter, ipython-notebook
Ipywebrtc
WebRTC for Jupyter notebook/lab
Stars: ✭ 171 (+23.91%)
Mutual labels:  ipython, jupyter-notebook, jupyter, ipython-notebook
Vscodejupyter
Jupyter for Visual Studio Code
Stars: ✭ 337 (+144.2%)
Mutual labels:  ipython, jupyter-notebook, jupyter, ipython-notebook
Sqlcell
SQLCell is a magic function for the Jupyter Notebook that executes raw, parallel, parameterized SQL queries with the ability to accept Python values as parameters and assign output data to Python variables while concurrently running Python code. And *much* more.
Stars: ✭ 145 (+5.07%)
Mutual labels:  ipython, jupyter-notebook, jupyter, ipython-notebook
Sci Pype
A Machine Learning API with native redis caching and export + import using S3. Analyze entire datasets using an API for building, training, testing, analyzing, extracting, importing, and archiving. This repository can run from a docker container or from the repository.
Stars: ✭ 90 (-34.78%)
Mutual labels:  ipython, jupyter-notebook, jupyter, ipython-notebook
Telepyth
Telegram notification with IPython magics.
Stars: ✭ 54 (-60.87%)
Mutual labels:  ipython, jupyter-notebook, jupyter, ipython-notebook
Digital Signal Processing Lecture
Digital Signal Processing - Theory and Computational Examples
Stars: ✭ 532 (+285.51%)
Mutual labels:  ipython, jupyter-notebook, jupyter
Cookbook 2nd Code
Code of the IPython Cookbook, Second Edition, by Cyrille Rossant, Packt Publishing 2018 [read-only repository]
Stars: ✭ 541 (+292.03%)
Mutual labels:  ipython, jupyter-notebook, jupyter
Nteract
📘 The interactive computing suite for you! ✨
Stars: ✭ 5,713 (+4039.86%)
Mutual labels:  ipython, jupyter-notebook, jupyter
Juniper
🍇 Edit and execute code snippets in the browser using Jupyter kernels
Stars: ✭ 189 (+36.96%)
Mutual labels:  ipython, jupyter-notebook, jupyter
Cookbook 2nd
IPython Cookbook, Second Edition, by Cyrille Rossant, Packt Publishing 2018
Stars: ✭ 704 (+410.14%)
Mutual labels:  ipython, jupyter-notebook, jupyter
Jupyterlab Lsp
Coding assistance for JupyterLab (code navigation + hover suggestions + linters + autocompletion + rename) using Language Server Protocol
Stars: ✭ 796 (+476.81%)
Mutual labels:  ipython, jupyter-notebook, jupyter
Homemade Machine Learning
🤖 Python examples of popular machine learning algorithms with interactive Jupyter demos and math being explained
Stars: ✭ 18,594 (+13373.91%)
Mutual labels:  algorithm, jupyter-notebook, jupyter
Tutorials
CatBoost tutorials repository
Stars: ✭ 563 (+307.97%)
Mutual labels:  ipython, jupyter-notebook, ipython-notebook
Jupyterhub Deploy Teaching
Reference deployment of JupyterHub and nbgrader on a single server
Stars: ✭ 194 (+40.58%)
Mutual labels:  ipython, jupyter-notebook, jupyter
Algorithm Playground
An (old) and unstructured (messy tbh) collection of programming exercises.
Stars: ✭ 75 (-45.65%)
Mutual labels:  algorithm, jupyter-notebook, jupyter
Ipybind
IPython / Jupyter integration for pybind11
Stars: ✭ 63 (-54.35%)
Mutual labels:  ipython, jupyter-notebook, jupyter
Ipyexperiments
jupyter/ipython experiment containers for GPU and general RAM re-use
Stars: ✭ 128 (-7.25%)
Mutual labels:  ipython, jupyter-notebook, jupyter
Awesome Jupyter
A curated list of awesome Jupyter projects, libraries and resources
Stars: ✭ 2,523 (+1728.26%)
Mutual labels:  ipython, jupyter-notebook, jupyter

ipytracer

Algorithm Visualizer for Jupyter/IPython Notebook

Inspired by parkjs814's AlgorithmVisualizer.

Master Latest(0.2.2)
tv-master-img tv-latest-img

pypi anaconda

Algorithm Visualizer for Jupyter/IPython Notebook.

It was inspired by parkjs814's AlgorithmVisualizer.

You can see how your Python code works.

If you use the display(TracerObject) code from where you want to see, you can use it without any special modification.

Supports built-in list methods.

Development Status

Pre-Alpha

Todo

  • Add more tracer api
  • Support non-built-in data type in python

Installation

Requirement

  • Jupyter/IPython Notebook (Python3.x)

To install use pip:

$ pip install ipytracer
$ jupyter nbextension enable --py --sys-prefix ipytracer

For a development installation (requires npm),

Pre installation

$ npm install -g webpack

Installation

$ git clone https://github.com/sn0wle0pard/ipytracer.git
$ cd ipytracer
$ pip install -e .
$ jupyter nbextension install --py --symlink --sys-prefix ipytracer
$ jupyter nbextension enable --py --sys-prefix ipytracer

Demo

Youtube Video

Alt text

https://youtu.be/vZQJ0Y3GtIs

Tracers

List1DTracer

Display Get Item Set Item
List1DBasic List1DGet list1DSet

List2DTracer

Get Item Set Item
List2DRowGet List2DRowSet
List2DColGet List2DColSet

ChartTracer

Display Get Item Set Item
ChartBasic ChartGet ChartSet

Bubble Sort

import ipytracer
from IPython.core.display import display

def bubble_sort(unsorted_list):
    x = ipytracer.ChartTracer(unsorted_list)
    display(x)
    length = len(x)-1
    for i in range(length):
        for j in range(length-i):
            if x[j] > x[j+1]:
                x[j], x[j+1] = x[j+1], x[j]
    return x.tolist()

bubble_sort([6,4,7,9,3,5,1,8,2])

BubbleSortWork

You can see more example here

Third Party Libraries

See Also NOTICE.md

Author

Han Lee / @sn0wle0pard

License

The Clear BSD License

Copyright (c) 2015-2017, Han Lee
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted (subject to the limitations in the disclaimer
below) provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
  list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
  this list of conditions and the following disclaimer in the documentation
  and/or other materials provided with the distribution.

* Neither the name of the copyright holder nor the names of its contributors may be used
  to endorse or promote products derived from this software without specific
  prior written permission.

NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS
LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].