Skip to content

Commit

Permalink
Fix typo (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Mar 5, 2019
1 parent d01f5b7 commit 6dd08a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ipysheet/easy.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def _assign(object, value):
setattr(object, trait, value)


def calculation(inputs, output, initial_calulation=True):
def calculation(inputs, output, initial_calculation=True):
"""A decorator that assigns to output widget a calculation depending on the input widgets
Example that takes three input widgets and writes the output to a cell:
Expand All @@ -327,7 +327,7 @@ def calculation(inputs, output, initial_calulation=True):
are input of the function that is decorated
output : widget or (widget, 'traitname')
The output of the decorator function will be assigned to output.value or output.<traitname>.
initial_calulation : bool
initial_calculation : bool
When True the calculation will be done directly for the first time.
"""
def decorator(f):
Expand Down Expand Up @@ -364,7 +364,7 @@ def handle_possible_widget_change(change, trait=trait):
change['new'].observe(calculate, trait)
calculate()
object.observe(handle_possible_widget_change, 'value')
if initial_calulation:
if initial_calculation:
calculate()
return decorator

Expand Down

0 comments on commit 6dd08a0

Please sign in to comment.