IPython and Interactivity

across this post and it quite literally blew my 3I recently came mind.

By importing everything from `IPython.html.widgets` you get an interact method. Any method that accepts parameters can be made interactive with sliders for values.

When experimenting with data, being able to change the values without changing code and re-running is a huge boon. Especially when looking for outlier thresholds. Instead of changing and re-running the graph every time, just add a slider and adjust until you have the value you want.

As I do a decent amount of experimentation with data, this will save me a large amount of time trying to figure out outliers. Will I use is for every project, no, but I will use it for the majority of data science I need to do.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s