%load_ext ipyjulia_hacks.magic
Initializing Julia interpreter. This may take some time... _ _ _ _(_)_ | Documentation: https://docs.julialang.org (_) | (_) (_) | _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help. | | | | | | |/ _` | | | | |_| | | | (_| | | Version 1.0.0 (2018-08-08) _/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release |__/ |
%%julia
import Random
Random.seed!(123)
using Plots
l = @layout([a{0.1h};b [c;d e]])
plot(randn(100,5),layout=l,t=[:line :histogram :scatter :steppre :bar],leg=false,ticks=nothing,border=false)
doc = %julia @doc divrem
doc
divrem(x, y)
The quotient and remainder from Euclidean division. Equivalent to (div(x,y), rem(x,y))
or (x÷y, x%y)
.
julia> divrem(3,7)
(0, 3)
julia> divrem(7,3)
(2, 1)
display(doc, include=["text/plain"])
divrem(x, y) The quotient and remainder from Euclidean division. Equivalent to (div(x,y), rem(x,y)) or (x÷y, x%y). Examples ≡≡≡≡≡≡≡≡≡≡ julia> divrem(3,7) (0, 3) julia> divrem(7,3) (2, 1)
import IPython
IPython.__version__
'7.0.0.dev'
import sys
!{sys.executable} -m pip freeze | grep -e julia -e ipython
-e git+git@github.com:tkf/ipyjulia_hacks.git@ee8395c98ac5c86b2f01a6e7b9af5e7f38c603aa#egg=ipyjulia_hacks ipython==7.0.0.dev0 ipython-genutils==0.2.0 -e git+https://github.com/JuliaPy/pyjulia@2b52b7cb601066bc4f9edfd5505815b951263024#egg=julia