有没有一种方便的方法将用Jupyter notebook生成的多个 .ipynb Julia文件转换为 .jl 工作文件?
如果 Jupyter 中编写的 markdown 能够保留,那就很好,但对我来说并非必需。
以下是我的文件示例内容:
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Some useful functions required to build the model"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"distance (generic function with 1 method)"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"#Euclidean distances between point p1 and p2\n",
"function distance(p1,p2)\n",
" dist=((p1[1]-p2[1])^2+(p1[2]-p2[2])^2)^(1/2)\n",
" return dist\n",
"end"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Tripletas (generic function with 1 method)"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],