<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Le 19 oct. 2014 à 12:30, Daniel Carrera <<a href="mailto:dcarrera@gmail.com">dcarrera@gmail.com</a>> a écrit :<br><div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><div>Hmm... I need help with IOctave... maybe I found a bug in IPython 3. I installed IPython 3 from Git like the instructions say, and then I installed IOctave.<br></div><br>---------------------------------------------<br>$ python --version<br>Python 2.7.6<br>$ <br></div><div>$ git clone --recursive <a href="https://github.com/ipython/ipython.git">https://github.com/ipython/ipython.git</a><br></div><div>$ cd ipython<br></div><div>$ pip install -e ".[notebook]" --user<br></div><div>$ sudo python setup.py install<br>$<br>$ ipython --version<br>3.0.0-dev<br>$<br>$ cd ../octave_kernel<br>$ sudo python setup.py instal<br>---------------------------------------------<br><br><div>If I try to start the notebook, it says that --kernel is not recognized.<br></div></div></div></blockquote><div><br></div><div>Well, this is normal for the notebook,  now that the notebook support multiple kernel.</div><div>just forget about the --kernel flag, you should get a drop down in the notebook UI to select octave kernel.</div><div>Look in the kernel menu, or at the top right of the notebook)</div><div><br></div><div>For the QT stuff can you open an issue on github  ? </div><div><br></div><div>-- </div><div>M</div><br><blockquote type="cite"><div dir="ltr"><div><br>---------------------------------------------<br>$ ipython notebook --kernel octave<br>... several lines of output ...<br></div>[C 141019 12:20:20 application:77] Bad config encountered during initialization:<br><div>[C 141019 12:20:20 application:78] Unrecognized flag: '--kernel'<br></div><div>---------------------------------------------<br><br><br></div><div>But if I try the same with the Qt console, there is no complaint about --kernel and the console seems to load fine. Instead, I get an error when I type '2+2'.<br></div><div><br>---------------------------------------------<br>$ ipython qtconsole --kernel octave<br>NOTE: When using the `ipython kernel` entry point, Ctrl-C will not work.<br></div><div>...skip...<br></div><div>To connect another client to this kernel, use:<br>    --existing kernel-28223.json<br>---------------------------------------------<br></div><div>(I type 2+2 in the console and press Enter)<br></div><div>---------------------------------------------<br>Traceback (most recent call last):<br>  File "/home/sigrid/Daniel/Teaching/MATLAB-2014/ipython/IPython/qt/base_frontend_mixin.py", line 138, in _dispatch<br>    handler(msg)<br>  File "/home/sigrid/Daniel/Teaching/MATLAB-2014/ipython/IPython/qt/console/frontend_widget.py", line 537, in _handle_stream<br>    self.append_stream(msg['content']['text'])<br>KeyError: 'text'<br><br>If you suspect this is an IPython bug, please report it at:<br>    <a href="https://github.com/ipython/ipython/issues">https://github.com/ipython/ipython/issues</a><br>or send an email to the mailing list at <a href="mailto:ipython-dev@scipy.org">ipython-dev@scipy.org</a><br><br>You can print a more detailed traceback right now with "%tb", or use "%debug"<br>to interactively debug it.<br><br>Extra-detailed tracebacks for bug-reporting purposes can be enabled via:<br>    c.Application.verbose_crash=True<br>---------------------------------------------<br><br></div><div>Help?<br><br></div><div>Cheers,<br></div><div>Daniel.<br></div><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 19 October 2014 11:10, Matthias Bussonnier <span dir="ltr"><<a href="mailto:bussonniermatthias@gmail.com" target="_blank">bussonniermatthias@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto;"><div style="word-wrap:break-word">Hi Daniel, <div><br><div><div>Le 19 oct. 2014 à 10:16, Daniel Carrera <<a href="mailto:dcarrera@gmail.com" target="_blank">dcarrera@gmail.com</a>> a écrit :</div><br><blockquote type="cite"><div dir="ltr"><div><div>Hello,<br><br></div>I teach a very short course on MATLAB for astronomy students (6 hours). This year I am thinking of replacing my usual Impress slides with an IPython notebook running Octave. Yesterday I got Octave running in IPython and it seems to work.<br><br></div>Is it possible to make an IPython profile that loads oct2py and treats every cell as if it had "%%octave -f svg" on the first line?<br></div></blockquote><div><br></div><div>I would suggest looking at IOctave (Octave Kernel of IPython)</div><div><br></div><div><a href="https://github.com/blink1073/octave_kernel" target="_blank">https://github.com/blink1073/octave_kernel</a></div><div><br></div><div>And generally look as <a href="https://github.com/ipython/ipython/wiki/Projects-using-IPython" target="_blank">https://github.com/ipython/ipython/wiki/Projects-using-IPython</a></div><div><br></div><blockquote type="cite"><div dir="ltr">This isn't a critical issue, but I think the notebook would look nicer this way. The students will not use the notebook themselves. This is just to to make my presentation a little more lively instead of just showing static code on a slide.<br></div></blockquote><div><br></div><div>I would suggest having a look at Damian Avila Live reveal mode also to do your presentation:</div><div><br></div><div><a href="https://github.com/damianavila/live_reveal" target="_blank">https://github.com/damianavila/live_reveal</a></div><div><br></div><div>Cheers, </div><span class="HOEnZb"><font color="#888888"><div>-- </div><div>Matthias</div><div><br></div><div><br></div><br><blockquote type="cite"><div dir="ltr"><div><div><br></div>Cheers,<br></div><div>Daniel.<br></div><div>-- <br>When an engineer says that something can't be done, it's a code phrase that means it's not fun to do.<br>
</div></div>
_______________________________________________<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></blockquote></font></span></div><br></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><br clear="all"><br>-- <br>When an engineer says that something can't be done, it's a code phrase that means it's not fun to do.<br>
</div>
_______________________________________________<br>IPython-dev mailing list<br><a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>http://mail.scipy.org/mailman/listinfo/ipython-dev<br></blockquote></div><br></body></html>