GitHub repo GitHub - jiangzhuochi/jupyter-JuliaFormatter: JuliaFormatter for Jupyter Notebook
JuliaFormatter for Jupyter Notebook
Format Julia with JuliaFormatter in Jupyter Notebook
前置条件 pre-requisites
of course, you must have some of the corresponding packages installed:
add JuliaFormatter
add JSON
安装 Installation
jupyter nbextension install https://github.com/jiangzhuochi/jupyter-JuliaFormatter/archive/main.zip --user
jupyter nbextension enable jupyter-JuliaFormatter-main/jupyter-JuliaFormatter
功能 Features
- a toolbar button
- a keyboard shortcut for reformatting the current code-cell (default: Alt-F, Mac: Option-F)
- a keyboard shortcut for reformatting whole code-cells (default: Alt-Shift-F, Mac: Option-Shift-F, Same as vscode format shortcut)
配置文件 Configuration File
Support configuration files, .JuliaFormatter.toml
must be the same as the current .ipynb
file is in the same directory
自定义快捷键 Customize shortcut keys
You can then open the nbextensions tab on the tree (dashboard/file browser) notebook page to configure nbextensions. You will have access there to a dashboard where extensions can be enabled/disabled via checkboxes. Additionally a short documentation for each extension is displayed, and configuration options are presented.