【问题标题】:How can I use my Ipython notebook code and output to within Latex (specifically in the Lyx GUI)如何在 Latex 中使用我的 Ipython 笔记本代码和输出(特别是在 Lyx GUI 中)
【发布时间】:2015-10-09 01:55:04
【问题描述】:

我在这里有一个 Ipython 笔记本,想在 Lyx GUI 中使用它,以便制作 Latex 文档

http://nbviewer.ipython.org/gist/decisionstats/4142e98375445c5e4174

import pandas as pd #importing packages
import os as os
#pd.describe_option() #describe options for customizing
#pd.get_option("display.memory_usage")#setting some options
os.getcwd() #current working directory

【问题讨论】:

    标签: latex ipython ipython-notebook lyx reproducible-research


    【解决方案1】:

    所以你想把你的 Notebook 转换成 tex 代码?这可以从命令行完成,如下所示:

    ipython nbconvert notebook.ipynb --to latex
    

    你可以阅读更多关于这个here

    【讨论】:

      猜你喜欢
      • 2014-03-14
      • 2020-11-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-09
      • 2013-03-02
      • 1970-01-01
      相关资源
      最近更新 更多