winforms - Unable to get IPython Notebook's url in WebBrowser -
i using system.windows.forms.webbrowser display webpages in windows forms application. url i'm trying display ipython notebook is,
http://localhost:8888/tree and i'm able achieve using below code,
this.webbrowser.navigate("http://localhost:8888/", false) now in page when click on new->python2 create new notebook, generates new url like,
http://localhost:8888/notebooks/untitled.ipynb?kernel_name=python2 my requirement new url in windowsforms application. i've tried events navigating, navigated , new url as,
http://localhost:8888/tree# and i'm not able right url. suggestions on this? thanks.
i've managed overcome problem editing javascript files in ipython package. can find javascript file @ ipython installed path,
ipython\html\static\tree\js\newnotebook.js in newnotebook.js edit line of code
var w = window.open(undefined, ipython._target); and add '_self' in order open new url in same window.
var w = window.open('', "_self"); now able url of page using webbrowser.navigated , navigating methods.
Comments
Post a Comment