小编rrg*_*rrg的帖子

在R-Studio中使用语法颜色进行打印

在RI中总是喜欢打印出脚本,因为它提供了很好的概述,并且可以调整最终的错误.我喜欢R-Studio中的语法高亮,因为它有助于阅读和快速理解代码.

有没有办法用我在编辑器中看到的突出显示来打印文本?

r rstudio

11
推荐指数
2
解决办法
1万
查看次数

在Jupyter iPython中运行Cython

使用Cython接口为时间试验运行迭代循环以获得几何级数.

编译时出错(shift-enter):CompileError:命令'gcc'失败,退出状态为1

%load_ext Cython
Run Code Online (Sandbox Code Playgroud)

%%cython
def geo_prog_cython(double alpha, int n):
    cdef double current = 1.0
    cdef double sum = current
    cdef int i
    for i in range(n):
        current = current * alpha
        sum = sum + current
    return sum
Run Code Online (Sandbox Code Playgroud)

错误:

//anaconda/lib/python3.5/distutils/command/build_ext.py in build_extension(self, ext)
    530                                          debug=self.debug,
    531                                          extra_postargs=extra_args,
--> 532                                          depends=ext.depends)
    533 
    534         # XXX outdated variable, kept here in case third-part code
Run Code Online (Sandbox Code Playgroud)

python cython anaconda jupyter-notebook

6
推荐指数
2
解决办法
9015
查看次数

标签 统计

anaconda ×1

cython ×1

jupyter-notebook ×1

python ×1

r ×1

rstudio ×1