<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>OK, thanks for clarifying it once again. Javascript API means user needs to interact with the page once it's already loaded? <div><br></div><div>do you plan for such an enhancement (passing parameters via URL to notebooks)? or which class would I need to modify to implement support for this?<br><br><div><hr id="stopSpelling">From: benjaminrk@gmail.com<br>Date: Thu, 8 May 2014 16:03:15 -0700<br>To: ipython-dev@scipy.org<br>Subject: Re: [IPython-dev] is it possible to pass parameters to IPython notebook via URL?<br><br><div dir="ltr"><br><div class="ecxgmail_extra"><br><br><div class="ecxgmail_quote">On Thu, May 8, 2014 at 11:51 AM, Roman Max. <span dir="ltr"><<a href="mailto:rmx555@hotmail.com" target="_blank">rmx555@hotmail.com</a>></span> wrote:<br>
<blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">
<div><div dir="ltr">Many thanks for the reply, I see. Indeed I am looking for a way to pass parameters to the Python code on the kernel, e.g. .NET app calling out a notebook with parameters and displaying output.<div>So, essentially the notebook server doesn't support this sort of interaction at the moment? I assume I could do it by cloning and modifying .ipynb template file before each request, still hoping there is a better way than that.<br>
</div></div></div></blockquote><div><br></div><div>No, the server definitely doesn't support URLs affecting the kernel. If you want to execute code on the Kernel, you would do this via the Javascript APIs.</div><div>
<br>
</div><div>-MinRK</div><div><br></div><div> </div><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;"><div><div dir="ltr"><div><br><div><hr>From: <a href="mailto:benjaminrk@gmail.com" target="_blank">benjaminrk@gmail.com</a><br>
Date: Thu, 8 May 2014 10:47:16 -0700<br>To: <a href="mailto:ipython-dev@scipy.org" target="_blank">ipython-dev@scipy.org</a><br>Subject: Re: [IPython-dev] is it possible to pass parameters to IPython notebook via URL?<div>
<div class="h5"><br><br><div dir="ltr">You can do this, but I wouldn't recommend it. The parameters will only be available to the HTML/JS in the notebook page, and not the Python code on the kernel. Plus, there is a chance that it would conflict with any future use of url parameters by the notebook server.<div>
<br></div><div>-MinRK</div></div><div><br><br><div>On Thu, May 8, 2014 at 10:11 AM, Roman Max. <span dir="ltr"><<a href="mailto:rmx555@hotmail.com" target="_blank">rmx555@hotmail.com</a>></span> wrote:<br>
<blockquote style="border-left:1px #ccc solid;padding-left:1ex;">
<div><div dir="ltr"><p style="border:0px;font-size:14px;vertical-align:baseline;background-color:rgb(255,255,255);clear:both;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:18px;">
is it possible to pass parameters to IPython notebook via URL?</p><p style="border:0px;font-size:14px;vertical-align:baseline;background-color:rgb(255,255,255);clear:both;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:18px;">
How to reference/use those parameters in a notebook?</p><p style="border:0px;font-size:14px;vertical-align:baseline;background-color:rgb(255,255,255);clear:both;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:18px;">
e.g. <a href="http://xxxyyzz.org:8888/mynotebook.ipynb" rel="nofollow" style="padding:0px;border:0px;vertical-align:baseline;background-color:transparent;color:rgb(74,107,130);text-decoration:none;" target="_blank">http://xxxyyzz.org:8888/mynotebook.ipynb</a><strong style="padding:0px;border:0px;vertical-align:baseline;background-color:transparent;">?d1=20140101&d2=20140401</strong></p>
<p style="border:0px;font-size:14px;vertical-align:baseline;background-color:rgb(255,255,255);clear:both;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:18px;"><br>
</p><p style="border:0px;font-size:14px;vertical-align:baseline;background-color:rgb(255,255,255);clear:both;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;line-height:18px;">
Did not find an answer after searching around. Thanks!</p> </div></div>
<br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org" target="_blank">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________
IPython-dev mailing list
<a href="mailto:IPython-dev@scipy.org" target="_blank">IPython-dev@scipy.org</a>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a></div></div></div></div> </div></div>
<br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br></div></div>
<br>_______________________________________________
IPython-dev mailing list
IPython-dev@scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-dev</div></div> </div></body>
</html>