Hi Aurélien,
I'm not completely understand what you want to do. Wether you can
access variable in a cell magic depend on the cell magic itself.
For example the %%R cel magic use a persistent R process so you will
still have access to already defined variable.
The bash and HTML magics shipped with IPython do not allow to share
variable with Python, though you can defined your own magic to do so.
You should be able to figure out which can do that thanks to the
@needs_local_scope decorator present on each of them, that pass
local_ns to the magic function.
Does that answer your question ?
--
Matthias
> --
> You received this message because you are subscribed to the Google Groups
> "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
jupyter+u...@googlegroups.com.
> To post to this group, send email to
jup...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/jupyter/64ce3eb8-fb2f-4fa5-a2ae-365403015fc2%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.