In [1]:
%%html
<script>
function code_toggle() {
if (code_shown){
$('div.input').hide('500');
$('#toggleButton').val('Show Code')
} else {
$('div.input').show('500');
$('#toggleButton').val('Hide Code')
}
code_shown = !code_shown
}
$( document ).ready(function(){
code_shown=false;
$('div.input').hide()
});
</script>
<form action="javascript:code_toggle()"><input type="submit" id="toggleButton" value="Show Code"></form>
In [2]:
# Mujpy tester, for inline graphics specify: %matplotlib notebook, for interactive %matplotlib tk (or just %matplotlib)
# %matplotlib -l lists all the possible options
In [3]:
%matplotlib tk
In [4]:
# loads the distribution when a distribution is already installed
from mujpy.mugui import mugui
MuJPy = mugui()