Top "Ipython-magic" questions

A set of pre-defined "magic functions" of IPython that used with the command-line syntax.

how to save the output of a cell in iPython notebook?

I would like to be able to save the TEXT output of an iPython notebook cell into a file on …

ipython ipython-notebook ipython-magic
Can I access python variables within a `%%bash` or `%%script` ipython notebook cell?

Is there a way to access variables in the current python kernel from within a %%bash or other %%script cell? …

ipython-notebook ipython-magic
How to pass a variable to magic ´run´ function in IPython

I want to do something like the following: In[1]: name = 'long_name_to_type_every_now_and_then.py' In[2]: %…

python ipython ipython-magic
How to (intermittently) skip certain cells when running IPython notebook?

I usually have to rerun (most parts of) a notebook when reopen it, in order to get access to previously …

python ipython ipython-notebook ipython-magic
Share data between IPython Notebooks

If I have several IPython notebooks running on the same server. Is there any way to share data between them? …

python ipython ipython-notebook ipython-magic
Pipe Ipython magic output to a variable?

I want to run a bash script in my ipython Notebook and save the output as a string in a …

python python-2.7 ipython ipython-notebook ipython-magic
Jupyter Notebook time profiling

So I installed jupyter notebook through anaconda and I am working on python 3 kernel. I am trying to do Time …

python python-3.x ipython-notebook jupyter-notebook ipython-magic
Time python scripts using IPython magic

How can I time the execution of a Python script using the iPython %time or %%timeit magic commands? For example, …

python profiling ipython ipython-magic
Configure the backend of Ipython to use retina display mode with code

I am using code to configure Jupyter notebooks because I have a repo with plenty of notebooks and want to …

ipython jupyter-notebook retina-display ipython-magic
How to use pipe in IPython

In a Linux terminal, when the output of one command is too long to read in one page, I can …

python scroll ipython pager ipython-magic