【问题标题】:Display IFrame in IJulia Jupyter Notebook在 IJulia Jupyter Notebook 中显示 IFrame
【发布时间】:2016-03-13 02:02:19
【问题描述】:

有没有办法在 IJulia Jupyter 笔记本中显示 IFrame?

我正在尝试将 Plotly.jl 与 Jupyter 一起使用。当plot 被调用时,它会返回一个链接到生成图的 URL。

使用 IFrame 应该可以解决这个问题。

Plotly.plot(["z"=>rand(6,6)],["style"=>["type"=>"heatmap"]])

https://plot.ly/~astrieanna/0  # Returned URL

【问题讨论】:

    标签: julia jupyter ijulia-notebook


    【解决方案1】:

    这不是发布问题的答案,但它确实解决了这个问题。

    Plotly.jl 即将发生巨大变化。其中之一将依赖 PlotlyJS.jl 包进行所有绘图的生成和显示。

    如果你想在 jupyter notebook 中使用来自 julia 的 plotly,你应该使用 PlotlyJS.jl:https://github.com/spencerlyon2/PlotlyJS.jl

    这里的文档:http://spencerlyon.com/PlotlyJS.jl/

    【讨论】:

      【解决方案2】:

      IJuliaPortrayals 有一个 IFrame 构造函数。

      IFrame(600, 200, "http://julialang.org")
      

      In [15]:

      使用 IFrame 带回 2003 年时代的页面!

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2018-06-06
        • 2019-01-28
        • 1970-01-01
        • 2017-10-15
        • 2018-10-26
        • 2013-09-14
        • 2017-01-28
        • 2018-05-10
        相关资源
        最近更新 更多