equal
deleted
inserted
replaced
600 \frametitle{Saving commands into script} |
600 \frametitle{Saving commands into script} |
601 Use the \typ{\%save} \alert{magic} command of IPython |
601 Use the \typ{\%save} \alert{magic} command of IPython |
602 \begin{block}{} |
602 \begin{block}{} |
603 \typ{\%save script_name line_numbers} |
603 \typ{\%save script_name line_numbers} |
604 \end{block} |
604 \end{block} |
605 Line numbers can be specified individually separated by commas or as a range separated by a dash.\\ |
605 Line numbers can be specified individually separated by spaces or as a range separated by a dash.\\ |
606 \begin{block}{} |
606 \begin{block}{} |
607 \typ{\%save four_plot.py} \alert{\typ{ 16 18-27}} \\ |
607 \typ{\%save four_plot.py} \alert{\typ{ 16 18-27}} \\ |
608 \end{block} |
608 \end{block} |
609 This saves from the history the commands entered on line numbers \alert{16, 18, 19, 20, \ldots 27} |
609 This saves from the history the commands entered on line numbers \alert{16, 18, 19, 20, \ldots 27} |
610 \end{frame} |
610 \end{frame} |