【问题标题】:how to use module from github to jupyter notebook如何使用从 github 到 jupyter notebook 的模块
【发布时间】:2021-07-17 04:13:25
【问题描述】:

我是python和github的新用户。

我想通过 Windows 10 上的 anaconda-jupyter 使用在 github (https://github.com/jamesbowman/raytrace) 上发布的新存储库(模块)。

我下载了 zip 文件夹并将其解压缩到我的下载文件夹 (F:\Téléchargement\raytrace-master)。 ,但是我不知道如何将这个模块与jupyter一起使用。

如何将此模块导入到 jupyter 中。

我尝试了一些方法但没有成功

为什么不能将我的下载文件夹(F:/téléchargement/)中的文件夹直接复制并粘贴到 jupyter notebook 文件夹(例如.../source/repos/)?

谢谢!

【问题讨论】:

    标签: github module jupyter-notebook repository


    【解决方案1】:

    尝试使用来自 Github 站点的 http 复制 url 并将其用于

    !git clone <https://github.com...> 在 jupyter 笔记本单元格中

    然后您可以执行!ls 来检查存储库是否已下载。感叹号表示您可以在笔记本上执行命令行命令!

    或者,您可以尝试解压缩并将 repo 移动到运行 jupyter 的同一目录,然后使用 !ls 搜索它

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-12-06
    • 2019-08-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-10-27
    • 1970-01-01
    相关资源
    最近更新 更多