Python Primer: The code do not display the graph in another tab of the browser

Course Name: Python for Trading: Basic, Section No: 5, Unit No: 21, Unit type: Notebook

# The graph will open in another tab of the browser

show(p)

# The code ends here

Hi Chueh,



If you download this notebook and run it on your local system, code cell 12 which contains the following code will display the graph by opening up a new tab in your web browser:

show(p)

However, since you are running the notebook on the Quantra portal itself, the graph will not open up in a new tab.

Instead, for the convenience of our learners, we have added a 'helping code' in code cell 13 that helps display the exact same graph within the notebook itself. (The following is the actual code from cell 13)

from IPython.display import HTML
HTML("./candlestick.html")

I hope this answers your question.