jupyternotify.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:jupyter-notify 作者: ShopRunner 项目源码 文件源码
def display_notification(self, options=None, notification_uuid=None):
        if options is None:
            options = self.options
        if notification_uuid is None:
            notification_uuid = uuid.uuid4()

        # display our browser notification using javascript
        with open(resource_filename("jupyternotify", "js/notify.js")) as jsFile:
            jsString = jsFile.read()
        display(Javascript(jsString % {
            "notification_uuid": notification_uuid,
            "options": json.dumps(options),
        }))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号