jupyter / jupyter/notebook

Embedded JavaScript executed but the result did not display

Open
#3,200 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
13.3k
Forks
5.8k
Avg merge
6d 11h
Merged PRs (30d)
7

Description

![3](https://user-images.githubusercontent.com/15943189/34808012-e7c0c16c-f6c6-11e7-9c47-a0e9f40cfe3d.PNG)
Hi there,

I was trying to embed the script below into my jupyter notebook, the script executed and I found those code embedded into my notebooks` output correctly but I could not get the result.

Here is the script:

```HTML

Market Quotes by TradingView
{
"width": "770",
"height": "450",
"locale": "en",
"symbolsGroups": [
{
"symbols": [
{
"name": "COINBASE:BTCUSD"
}
],
"name": "Equities"
}
]
}

```

How I embed it:
![3](https://user-images.githubusercontent.com/15943189/34807344-3f76bdf2-f6c3-11e7-9af4-c4e857adfa6d.PNG)

In Chrome`s devtool, I can see those code embedded into the page and embed-widget-market-quotes.js fetched:

![3](https://user-images.githubusercontent.com/15943189/34807543-594b22a8-f6c4-11e7-810f-6f8b23d2cfc4.PNG)

![3](https://user-images.githubusercontent.com/15943189/34807517-30da70f8-f6c4-11e7-8c83-36e2f0fcf732.PNG)

In console, there is no error complained:

![3](https://user-images.githubusercontent.com/15943189/34808019-f3f873b2-f6c6-11e7-87a0-9d851dbfcb2f.PNG)

The script works properly in a single html file:

![3](https://user-images.githubusercontent.com/15943189/34807585-8ca2edde-f6c4-11e7-8951-e6aa34174353.PNG)

Any idea? Thanks in advance~

Contributor guide

Open the contributing guide

Research direction

Reproduce the TradingView embedded JavaScript example in a Jupyter notebook and compare its rendered output with the standalone HTML file shown in the report. Inspect the notebook's rendered HTML output and browser behavior; done means the widget result displays in the notebook without console errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jupyter-notebook
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.