1

I am using Anaconda Jupyter notebook, in one of the paragraph i want to open a google search browser i dont want to open the google.com in a new tab.

With the below code i am able to open the google.com but it opens in new tab.

I need a function that will open a web browser in the output part where we get the results.

I tried the below code:

Code:

import webbrowser
webbrowser.open('https://www.google.com/', new=2)

please help, thanks in Advance.

loki
  • 976
  • 1
  • 10
  • 22
Robby Star
  • 41
  • 4

1 Answers1

2

How about this?

%%html
<iframe src="https://playground.tensorflow.org" width="1200" height="1000"></iframe>

Or this:

from IPython.display import IFrame

url = 'https://playground.tensorflow.org'
IFrame(url, width=800, height=400)
ExplodingGayFish
  • 2,807
  • 1
  • 5
  • 14