results.html generated HTML file has multiple issues
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript, plotly, python
調査の方向性
添付された plotly-charts.py の例から始め、results[0].html を生成する Sandbox.run_code の結果パスを追跡します。期待される top_10_gdp_pie_chart.html と比較します。出力に HTML コンテナタグが含まれ、ライブラリ全体を埋め込むのではなく CDN でホストされた Plotly.js を参照していれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Issue: results.html generated HTML file has multiple issues
[1] It has only javascript content, no HTML container tags.
[2] The HTML file is so huge that it resolves CDN hosted javascript content instead of referring it.
The E2B code executed:
from dotenv import load_dotenv
load_dotenv()
from e2b_code_interpreter import Sandbox
api_key = E2B_API_KEY
code = "...."
sbx = Sandbox.create(api_key=api_key)
execution = sbx.run_code(code)
In [11]: execution.results
Out[11]: [Result(Formats: html), Result(Formats: html, application/vnd.plotly.v1+json)]
html_content = execution.results[0].html
In [12]: html_content
Out[12]: ' <script type="text/javascript">\n window.PlotlyConfig = {MathJaxConfig: \'local\'};\n if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: "STIX-Web"}});}\n </script>\n <script type="module">/**\n* plotly.js v3.0.1\n* Copyright 2012-2025, Plotly, Inc.\n* All rights reserved.\n* Licensed under the MIT license\n*/\n(\n function(root, factory) {\n if (typeof module === "object" && module.exports) {\n module.exports = factory();\n } else {\n root.moduleName = factory();\n }\n} (typeof self !== "undefined" ? self : this, () => {\n"use strict";var Plotly=(()=>{var VQe=Object.create;var MS=Object.defineProperty,HQe=Object.defineProperties,GQe=Object.getOwnPropertyDescriptor,jQe=Object.getOwnPropertyDescriptors,WQ
...
....
- The above html_content shows only javascript content, no HTML container tags.
- It has resolved and downloaded the entire CDN hosted plotly.js within it.
The expected HTML file should have reference to CDN hosted Plotly.js file
<html>
<head><meta charset="utf-8" /></head>
<body>
<div> <script type="text/javascript">window.PlotlyConfig = {MathJaxConfig: 'local'};</script>
<script charset="utf-8" src="https://cdn.plot.ly/plotly-2.35.2.min.js"></script> <div id="f7c2c6fa-f9f3-40a5-a200-76f48ea8dd58" class="plotly-graph-div" style="height:100%; width:100%;"></div> <script type="text/javascript"> window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById("f7c2c6fa-f9f3-40a5-a200-76f48ea8dd58")) { Plotly.newPlot(
References:
- Plotly chart generation code is attached here: plotly-charts.py-
- Expected HTML file content: top_10_gdp_pie_chart.html
- Actual HTML file content from result.html: its huge 4 MB containing mainly plotly.js code
- 主要言語
- Python
- スター
- 2.4k
- フォーク
- 228
- 平均マージ
- 48分
- マージ済み PR(30日)
- 5
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
e2b-dev/code-interpreter のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
e2b-dev/code-interpreter#326 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
e2b-dev/code-interpreter#251 · コメント 2 件 ·
-
Dependency Dashboard オープンChore Dashboard
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
e2b-dev/code-interpreter#200 · コメント 2 件 ·
-
feature SDK
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
e2b-dev/code-interpreter#190 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
e2b-dev/code-interpreter#165 · コメント 1 件 ·
e2b-dev/code-interpreter の issue をすべて見る
似ている issue
-
documentation help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
simonw/sqlite-utils#872 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100