Step-by-step instruction on notebook with Octave kernel setting is wanted.

3,111 views
Skip to first unread message

Xuefeng LIU

unread,
Jul 17, 2015, 12:07:37 PM7/17/15
to jup...@googlegroups.com
Hello, everyone,

Here is a short introduction of myself:

This is Xuefeng LIU from Niigata Univerity, Japan.
I have been playing with IPython for half a year and I love it very much.  I even set up a cloud computing environment that allows 
my students to do computing on browser with the power of IPython + NumPy. 
( http://www.cloud2015.org  Sorry that the portal page is in Japanese.)

I have a great need to install Octave kernel on IPython notebook( or Jupyter?). The final dream is to let students do matrix computing on browsers.

Here is my question:

Below is the resource I can find for Octave kernel setting. But after many tries, I still can not make it run properly.

IPython:

Kernel:

My OS is Ubuntu 15.04.  I have installed python3, ipython3, ipython3-notebook with easy_install and pip(3).

The result from running "ipython3  kernelspec list" is 

 
 
Available kernels:
  python3
  octave_kernel


 
But when I run  "ipython3 notebook --kernel=octave_kernel", there comes error as below:


 
[W 00:47:29.988 NotebookApp] Unrecognized alias: '--kernel=octave_kernel', it will probably have no effect.


Could anyone give some instruction on setting Octave kernel?

It seems that Jupyter is on developing and everything is changing in short near future. 
Shall I wait for a while until a stable version comes?


Xuefeng LIU

Thomas Kluyver

unread,
Jul 17, 2015, 12:38:59 PM7/17/15
to jup...@googlegroups.com
On 17 July 2015 at 09:07, Xuefeng LIU <xfliu...@gmail.com> wrote:
But when I run  "ipython3 notebook --kernel=octave_kernel",

The notebook server doesn't take a --kernel flag. Start the notebook as normal, and in the 'New' dropdown menu, there should be an option to make an Octave notebook.

Xuefeng LIU

unread,
Jul 17, 2015, 10:01:46 PM7/17/15
to jup...@googlegroups.com

2015年7月18日土曜日 1時38分59秒 UTC+9 takowl:
On 17 July 2015 at 09:07, Xuefeng LIU <xfliu...@gmail.com> wrote:
But when I run  "ipython3 notebook --kernel=octave_kernel",

The notebook server doesn't take a --kernel flag. Start the notebook as normal, and in the 'New' dropdown menu, there should be an option to make an Octave notebook.

Many thanks for your hint. It is in the "New" dropdown menu!

After struggling with upgrading from python2 to python3, now everything works well!

P.S. 
In my OS, both pypthon2 and python3 exist. So it was hard time to  configure python packages. 
Sometime, "ipython notebook" and "ipython3 notebook" gives different result.



Maximilian Albert

unread,
Jul 19, 2015, 7:43:27 AM7/19/15
to jup...@googlegroups.com
2015-07-18 3:01 GMT+01:00 Xuefeng LIU <xfliu...@gmail.com>:

P.S. 
In my OS, both pypthon2 and python3 exist. So it was hard time to  configure python packages. 
Sometime, "ipython notebook" and "ipython3 notebook" gives different result.

For this sort of thing conda is really great. It provides a really clean separation of environments so you can have python 2 and 3 installed at the same time, and even have different versions of Python modules installed in various environments if you need to (note that you can still use pip to install a module into an environment if there is no pre-packaged conda version for it). See the docs [1] for details how to use it, and check out miniconda [2] if you don't want to install the full-blown Anaconda suite.

Cheers,
Max

Xuefeng LIU

unread,
Jul 24, 2015, 8:14:19 AM7/24/15
to Project Jupyter, maximili...@gmail.com
Hi, Max,

It is still about the multiple versions of python.  

On http://try.jupyter.org, user can select to create python 2 or python 3 note.
I am wondering how to implement this. In my server, only one choice as "python" appears, which is in fact "python 3".

Can conda make it possible like http://try.jupyter.org?

With best regards!

Xuefeng LIU


2015年7月19日日曜日 20時43分27秒 UTC+9 Maximilian Albert:
Reply all
Reply to author
Forward
0 new messages