markdown Jupyter魔法命令

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown Jupyter魔法命令相关的知识,希望对你有一定的参考价值。

- % - command arguments come from the same line (line magics)

- %% - command argument come from the entire cell (cell magics)

``%lsmagic`` - lists all magics commands

``%pwd`` - print the current working directory

``%ls`` - list files and folders in the current working directory

``%ls -la`` - as above but with details

``%matplotlib inline`` - enables displaying matplitlib charts inside the notebook

``%%HTML`` - render entire cell as HTML (e.g. embedding)

``%%javascript`` - interpret entire cell as JavaScript

``%%timeit`` - prints average time to execute the method from the cell

以上是关于markdown Jupyter魔法命令的主要内容,如果未能解决你的问题,请参考以下文章

Jupyter Notebook的魔法

Jupyter notebook中5个有趣的魔法命令

jupyter book的使用

jupyter notebook使用技巧--命令行模式以及在Markdown模式使用的操作

从实例方法定义的 Jupyter 魔法

jupyter 中markdown使用