Commit d43c6dcb authored by Michael Droettboom's avatar Michael Droettboom Committed by GitHub

Merge pull request #134 from thatneat/patch-1

`square` -> `cube` to avoid aliasing
parents 79c97f8d 8c83cfa7
......@@ -162,16 +162,16 @@ Likewise, you can use Javascript objects from Python.
%% js
// javascript
function square(x) {
return x*x;
function cube(x) {
return x*x*x;
}
%% md
To call this function from Python...
%% code {"language":"py"}
from js import square
square(4)
from js import cube
cube(4)
%% md
## Exceptions
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment