How to include output when saving history as notebook in iPython -
i not seem able output included in .ipynb created the
%notebook -e tmp.ipynb
magic command. when create simple function should produce output, f, can save the
%history -o -f history.test
magic command, , see output :
f = lambda x : x + 2 /f 1 3.
however, when try same using above %notebook magic command, following :
{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "f = lambda x : x + 2" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "/f 1" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "%history -o -f history.test" ] } ], "metadata": {}, "nbformat": 4, "nbformat_minor": 0 }.
has encountered problem? problem, even? or feature of ipython? doesn't seem clear documentation, have seen embedded ipython notebook html in blogs have output lines. should note not have custom *config* files in .ipython/profile_default directory.
Comments
Post a Comment