Their are some &quot;cell magics&quot; for running different languages in individual blocks in a Jupyter notebook. I gave it a try in passing with javascript a while back and I remember there was a way to share variables through as well.<p>You can see the available magics here:
<a href="https:&#x2F;&#x2F;ipython.org&#x2F;ipython-doc&#x2F;3&#x2F;interactive&#x2F;magics.html#cellmagic-javascript" rel="nofollow">https:&#x2F;&#x2F;ipython.org&#x2F;ipython-doc&#x2F;3&#x2F;interactive&#x2F;magics.html#ce...</a><p>Unfortunately it looks like there is none for R or Julia, but perhaps they are installed by those specific packages, or their is some other way I don&#x27;t know of.