如何每天自动运行python jupyter笔记本 [英] how to run a python jupyter notebook daily automatically

查看:921
本文介绍了如何每天自动运行python jupyter笔记本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在python jupyter笔记本中有一个代码,但是我每天都需要运行此代码,所以我想知道是否有一种设置方法,对此我非常感谢

解决方案

如果要获得更高的质量,最好与气流结合使用. 我将它们打包在一个docker映像中, https://github.com/michaelchanwahyan/datalab .

这是通过修改开源软件包nbparameterize并集成传递的参数(例如execution_date)来完成的. 图形可以即时生成 .输出可以更新并保存在笔记本内部.

执行时

  • 将读取笔记本并注入参数
  • 笔记本被执行,输出将覆盖原始路径

此外,它还安装并配置了通用工具,例如spark,keras,张量流等.

I have a code in a python jupyter notebook but i need to run this every day so I would like to know if there's a way to set this, I really appreciate it

解决方案

It's better to combine with airflow if you want to have higher quality. I packaged them in a docker image, https://github.com/michaelchanwahyan/datalab.

It is done by modifing an open source package nbparameterize and integrating the passing arguments such as execution_date. Graph can be generated on the fly The output can be updated and saved within inside the notebook.

When it is executed

  • the notebook will be read and inject the parameters
  • the notebook is executed and the output will overwrite the original path

Besides, it also installed and configured common tools such as spark, keras, tensorflow, etc.

这篇关于如何每天自动运行python jupyter笔记本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆