Octoframes / jupyter_capture_output

A cellmagic that captures celloutput such as text, image or video to files.
https://octoframes.github.io/jupyter_capture_output/
MIT License
31 stars 0 forks source link

Getting "Line magic function `%%capture_text` not found" #5

Closed 25shmeckles closed 2 years ago

25shmeckles commented 2 years ago

I can't get it to work.

import jupyter_capture_output
%%capture_text --path "log.txt"
print('test')

Jupyter Capture Output v0.0.6
UsageError: Line magic function `%%capture_text` not found.

Even though:

%capture_text --path "log.txt"
UsageError: Line magic function `%capture_text` not found (But cell magic `%%capture_text` exists, did you mean that instead?).

My setup:

Python 3.10.4 on Ubuntu
IPython          : 8.4.0
ipykernel        : 6.15.0
ipywidgets       : not installed
jupyter_client   : 7.3.4
jupyter_core     : 4.10.0
jupyter_server   : not installed
jupyterlab       : not installed
nbclient         : 0.6.4
nbconvert        : 6.5.0
nbformat         : 5.4.0
notebook         : 6.4.12
qtconsole        : not installed
traitlets        : 5.3.0
kolibril13 commented 2 years ago

I think these two cells should be separate cells:

import jupyter_capture_output
%%capture_text --path "log.txt"
print('test')
25shmeckles commented 2 years ago

Indeed. However, this is not really obvious, I suggest you add it in the docs.