Startup and Use of Qtconsole with Jupyter

14 views
Skip to first unread message

rayj

unread,
Jan 1, 2020, 7:36:44 PM1/1/20
to sage-support
Environment is Fedora VM on Qubes OS.
I would like to use qtconsole along with Jupyter.  Jupyter is working. 
[Q] The purpose, at the moment, is superstition.  I read that a qtconsole might provide 'support' while developing a jupyter notebook.  I would like to learn how this might work.

I installed qtconsole with
pip3 install qtconsole --user
(It failed without --user.)


But I have not been able to bring up qtconsole and Jupyter.

Re: https://www.tutorialspoint.com/jupyter/jupyter_qtconsole_getting_started.htm

  You can start Jupyter console from Anaconda navigator.

  To start it from the command line, you should use the

  following command, either from the Windows command

  prompt or Anaconda prompt −


jupyter qtconsole

While this article is specifically for Anaconda, I tried it at the sage prompt but it brought up syntax error at qtconsole. qtconsole at the sage prompt produced the same.

I start jupyter at the bash prompt
sage -n jupyter

After this, the sage console no longer has a prompt and doesn't seem active; it will respond to a ^z.  with a new prompt

With jupyter running, dropping down the new button on the jupyter page, and then selecting terminal , inputting
qtconsole brings up qtconsole.  Now both jyputer and qtconsole are up.

Is there a way to simplify this sequence?

Further

Going to the jupyter page, I can input an expression in the green outlined cell, 2+2, ShftEnter, but there is no output, just a new cell.

At the Jupyter qtconsole, expression entries execute. 

On opening the help menu on qtconsole, the qtconsole stopped working

Next, I opened a terminal and executed jypyter qtconsole.
A qtconsole opened.  Expressions executed.

I went back to the terminal, pressed cntrl-z, qtconsoled became unresponsive.  The jupyter page became unresponsive.  I attempted to close the qtconsole window the the 'X' in the upper right corner.  It was unresponsive.  I closed the terminal, and qtconsole also closed. 

Third attempt.
Open a new terminal.  Start with
sage -n jupyter
Code cells execute expressions. 
Open qtconsole from jupyter page.
At the qtconsole, expressions execute. 
On jupyter page, code cells execute expressions. 

It is not clear why the behavior was different from trial to trial. 

Closing the terminal produces a message:  Stopped       sage -n jupyter
The jupyter page no longer executes expressions but cells still have some functionality. 
At the jupyter page, the new hotpot processes a blank page.
The qtconsole still executes expressions. 

[Q] In order for qtconsole to help support jupyter, I would think they would need to share the same kernal.  I would like to learn how to tell if they do.  And, with this method of starting both, is there a way to assure they do share the same kernel. 






Reply all
Reply to author
Forward
0 new messages