Skip to content

Instantly share code, notes, and snippets.

@ixtiyoruz
Created March 5, 2022 01:24
Show Gist options
  • Save ixtiyoruz/f3055aaed6d0e97bb633572299ff2cbb to your computer and use it in GitHub Desktop.
Save ixtiyoruz/f3055aaed6d0e97bb633572299ff2cbb to your computer and use it in GitHub Desktop.
magics inside jupyter
'
@interact(n=(0, len(faces)-1))
'
@ixtiyoruz
Copy link
Author

ixtiyoruz commented Mar 5, 2022

  1. this one creates slidebar to control input
from ipywidgets import interact
@interact(n=(0, len(faces)-1))
def some_function(n=0):

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment