python - 如何在 JupyterLab 中压缩文件夹?

标签 python jupyter-lab

我在 JupyterLab 中有一个名为 myfolder 的文件夹(包含多个文件)。我可以下载文件但不能下载文件夹,因为 JupyterLab 不允许。因此,我想压缩该文件夹,然后将其下载到我的 table ​​面。

问题:如何压缩我的文件夹?

这个没用:Downloads folder from JupyterLab

最佳答案

您是否也尝试使用 tar 而不是 zip

查看 github 中的讨论

on my notebook zip is not working but tar is. so

%%bash

tar -czf archive.tar.gz foldername

关于python - 如何在 JupyterLab 中压缩文件夹?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66037110/

相关文章:

python - Jupyter Lab 在 RAM 不足时卡住计算机 - 如何预防?

docker - Juypterlab的Docker容器

python - Jupyter 单行 bash 到 python 变量

Python 代码作为参数

KDB Q 和 jupyterlab 不在 peach 上使用从属设备

python - Seaborn 箱线图和线图显示不正确

python - 解析 paramiko 的输出

machine-learning - 绘图显示 AWS Sagemaker JupyterLab 中的空白图表

python - 如何每隔 x 小时在 bash 脚本中重新启动 python 脚本?

python - 导入库无法与 exec 函数一起使用?