function javascript in all cell

debimax <[email protected]> Fri, 23 Dec 2016 01:17:06 -0700 (MST)
Newsgroups gmane.comp.python.ipython.user
Message-ID <[email protected]>
hello

(excuse me for my bad  english)
Il have un function  in cell   javascript

cell1:  **************************
%%javascript
function afficher(msg)
 {
   element.append(msg);
 }
 afficher("hi")
********************************


it's  good and i have message "hi"  but if i try function afficher in a
other cell 
cell2: ***************************
%%javascript
afficher("hi")
*********************************

it's no good and i have  error:   *<it> NameError: name 'afficher' is not
defined</it>*

is it possible to use function /afficher/ in all cell.

thanks



--
View this message in context: http://python.6.x6.nabble.com/function-javascript-in-all-cell-tp5205651.html
Sent from the IPython - User mailing list archive at Nabble.com.