RE:Status of ipython-qtconsole

2016-06-11 Thread PICCA Frederic-Emmanuel
Hello Julien

> Not as far as I know.  I'd be happy to review a package if that would
> help.

I just pushed here my wip package

git clone 
git+ssh://git.debian.org/git/python-modules/packages/python-qtconsole.git

I have debian/TODO.org file where I put the remaining things to do.

I would be glade if your could do a review (it si still work in progress)
But this is my first package for python-modules

Here the question which need to be answered before uploaded even to experimental

* qtconsole provide jupyter-qtconsole

  - [ ] for python3 what is the right scheme
jupyter-qtconsole3 or jupyter3-qtconsole

the problem is that jupyter-core provide only jupyter and not jupyter3
so for now if I start
jupyter qtconsole it start a Python2 kernel

with jupyter-qtconsole3 -> jupyter qtconsole3 -> Python3
with jupyter3-qtconsole -> jupyter 


Cheers,
Fred


Ps: I will add the -doc file  :)


Re: Status of ipython-qtconsole

2016-06-11 Thread Gordon Ball
On 11/06/16 17:45, PICCA Frederic-Emmanuel wrote:
> Hello Julien
> 
>> Not as far as I know.  I'd be happy to review a package if that would
>> help.
> 
> I just pushed here my wip package
> 
> git clone 
> git+ssh://git.debian.org/git/python-modules/packages/python-qtconsole.git
> 
> I have debian/TODO.org file where I put the remaining things to do.
> 
> I would be glade if your could do a review (it si still work in progress)
> But this is my first package for python-modules
> 
> Here the question which need to be answered before uploaded even to 
> experimental
> 
> * qtconsole provide jupyter-qtconsole
> 
>   - [ ] for python3 what is the right scheme
> jupyter-qtconsole3 or jupyter3-qtconsole
> 
> the problem is that jupyter-core provide only jupyter and not jupyter3
> so for now if I start
> jupyter qtconsole it start a Python2 kernel
> 
> with jupyter-qtconsole3 -> jupyter qtconsole3 -> Python3
> with jupyter3-qtconsole -> jupyter 
> 

I think in jupyter this is meant to be handled by the --kernel option - ie

jupyter qtconsole --kernel python2
jupyter qtconsole --kernel python3

given the existence of non-python kernels (irkernel, ihaskell, iruby,
ijavascript, etc...)

> 
> Cheers,
> Fred
> 
> 
> Ps: I will add the -doc file  :)
> 



RE:Status of ipython-qtconsole

2016-06-11 Thread PICCA Frederic-Emmanuel
> I think in jupyter this is meant to be handled by the --kernel option - ie

> jupyter qtconsole --kernel python2

ok it works

>jupyter qtconsole --kernel python3

$ jupyter qtconsole --kernel python3
Traceback (most recent call last):
  File "/usr/bin/jupyter-qtconsole", line 9, in 
load_entry_point('qtconsole==4.2.1', 'gui_scripts', 'jupyter-qtconsole')()
  File "/usr/lib/python2.7/dist-packages/qtconsole/qtconsoleapp.py", line 396, 
in main
JupyterQtConsoleApp.launch_instance()
  File "/usr/lib/python2.7/dist-packages/jupyter_core/application.py", line 
267, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/usr/lib/python2.7/dist-packages/traitlets/config/application.py", line 
595, in launch_instance
app.initialize(argv)
  File "", line 2, in initialize
  File "/usr/lib/python2.7/dist-packages/traitlets/config/application.py", line 
74, in catch_config_error
return method(app, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/qtconsole/qtconsoleapp.py", line 367, 
in initialize
JupyterConsoleApp.initialize(self,argv)
  File "/usr/lib/python2.7/dist-packages/jupyter_client/consoleapp.py", line 
334, in initialize
self.init_kernel_manager()
  File "/usr/lib/python2.7/dist-packages/jupyter_client/consoleapp.py", line 
288, in init_kernel_manager
self.kernel_manager.start_kernel(**kwargs)
  File "/usr/lib/python2.7/dist-packages/jupyter_client/manager.py", line 230, 
in start_kernel
kernel_cmd = self.format_kernel_cmd(extra_arguments=extra_arguments)
  File "/usr/lib/python2.7/dist-packages/jupyter_client/manager.py", line 170, 
in format_kernel_cmd
cmd = self.kernel_spec.argv + extra_arguments
  File "/usr/lib/python2.7/dist-packages/jupyter_client/manager.py", line 82, 
in kernel_spec
self._kernel_spec = 
self.kernel_spec_manager.get_kernel_spec(self.kernel_name)
  File "/usr/lib/python2.7/dist-packages/jupyter_client/kernelspec.py", line 
175, in get_kernel_spec
raise NoSuchKernel(kernel_name)
jupyter_client.kernelspec.NoSuchKernel: No such kernel named python3

given the existence of non-python kernels (irkernel, ihaskell, iruby,
ijavascript, etc...)


But if I list the kernel available I have just

~$ jupyter-kernelspec list
Available kernels:
  python3/usr/lib/python3/dist-packages/ipykernel/resources


so it is really strange...

Cheers

Fred