文章预览
#nbviewer #Jupyter #Notebooks ============================= A simple way to share Jupyter Notebooks --------------------------------------- 简单快捷的预览笔记本,除此之外colab也是不错的选择,而且 还可以…
文章
标签
喜欢
共找到 18 篇相关文章
文章预览
#nbviewer #Jupyter #Notebooks ============================= A simple way to share Jupyter Notebooks --------------------------------------- 简单快捷的预览笔记本,除此之外colab也是不错的选择,而且 还可以…
文章预览
树莓派常用docker总结 美杜莎自动追剧神器 --------- ``` docker create \ --name=medusa \ --restart unless-stopped \ -v /home/pi/dirve/data/medusa:/config \ -v /home/pi/dirve/Download/transmis…
文章预览
PHP版本的Jupyter笔记本
[Jupyter-PHP’s Installer by Litipk](https://litipk.github.io/Jupyter-PHP-Installer/)
>
> undefined
>
>
另外还有个老版本支持PHP >= 5.4
文章预览
2021-07-05 记事
文章预览
Docker 不提供在运行的容器中修改环境变量的方法,所以启动时候最好加上sudo权限. 创建密码 ``` import IPython IPython.lib.passwd() ``` ``` sudo docker run --name user -d --restart unless-stopped -p 8888:8888 …
文章预览
写入到python文件
```
%%writefile myfile.py
def my_function():
print("Hello from a function")
```
这种方案对于写入配置文件和临时文件来说还是很简单的。
参考链接
Hack: How To Create Files From Jupyter
文章预览
%%writefile 示例 ``` %%writefile some.file ``` 但是`%%writefile`不会解释变量。 如果需将变量打印到文件中,可以使用`print`,将print的结果输出到文件中。 ``` s = 'hello all' print (s,file = open (r'hello.txt','w')…
文章预览
Anaconda -------- Anaconda is the leading open data science platform .The open source version of Anaconda includes over 100 of the most popular Python packages for data science.…
文章预览
To write code files in Jupyter Notebook, you can use the built-in magic command `%%writefile`. Here is an example: ``` %%writefile example.py def my_function(): print("Hel…
文章预览
To switch directories in Jupyter Notebook, you can use the `%cd` magic command. Here's an example: ``` %cd /path/to/new/directory ``` Replace `/path/to/new/directory` with the…