[SOLVED] Re: [gentoo-user] jupyter notebook 500 : Internal Server Error

2020-06-27 Thread Valmor F. de Almeida



On 6/26/20 10:08 AM, Andreas K. Huettel wrote:

Am Donnerstag, 25. Juni 2020, 22:13:46 CEST schrieb Valmor de Almeida:

Hello,
I had to enable ~amd64 to emerge jupyter so I know this is bound for
problems. However, anyone there able to use jupyter notebooks in
gentoo?
No matter what notebook I try to open, I get the internal server error.
Thank you.

Try updating dev-python/nbconvert to a version newer than the stable one.

You probably did this the same way as me, keywording only what was really
necessary on an otherwise stable system. Problem is, notebooks have an
internal versioning, and nbconvert-5.2 doesn't support recent versions
anymore. After updating nbconvert things worked fine for me.

(Time to fix this, I know, but there's only so many hours in the day...)


Thank you. It worked!

--

Vamor

Here is some info for reference:

*  dev-python/jupyter
  Latest version available: 1.0.0-r2
  Latest version installed: 1.0.0-r2
  Size of files: 15 KiB
  Homepage:  https://jupyter.org
  Description:   Jupyter metapackage. Install all the Jupyter 
components in one go

  License:   BSD

*  dev-python/jupyter_client
  Latest version available: 5.2.3-r1
  Latest version installed: 5.2.3-r1
  Size of files: 266 KiB
  Homepage:  https://jupyter.org
  Description:   Jupyter protocol implementation and client libraries
  License:   BSD

*  dev-python/jupyter_console
  Latest version available: 6.1.0
  Latest version installed: 6.1.0
  Size of files: 28 KiB
  Homepage:  https://jupyter.org
  Description:   A terminal-based console frontend for Jupyter kernels
  License:   BSD

*  dev-python/jupyter_core
  Latest version available: 4.6.1-r1
  Latest version installed: 4.6.1-r1
  Size of files: 66 KiB
  Homepage:  https://jupyter.org
  Description:   Core common functionality of Jupyter projects
  License:   BSD

*  dev-python/nbconvert
  Latest version available: 5.6.1
  Latest version installed: 5.5.0
  Size of files: 687 KiB
  Homepage:  https://nbconvert.readthedocs.io/
  Description:   Converting Jupyter Notebooks
  License:   BSD

/etc/portage/package.accept_keywords/jupyter

dev-python/jupyter ~amd64
dev-python/jupyter_console ~amd64
dev-python/nbconvert ~amd64

/etc/portage/package.use/jupyter

net-libs/zeromq drafts
dev-python/PyQt5 gui svg widgets
x11-libs/libxkbcommon X
dev-libs/libpcre pcre16
dev-libs/libpcre2 pcre16

emerge jupyter

emerge =nbconvert-5.5.0





Re: [gentoo-user] jupyter notebook 500 : Internal Server Error

2020-06-26 Thread Andreas K. Huettel
Am Donnerstag, 25. Juni 2020, 22:13:46 CEST schrieb Valmor de Almeida:
> Hello,
> I had to enable ~amd64 to emerge jupyter so I know this is bound for
> problems. However, anyone there able to use jupyter notebooks in
> gentoo?
> No matter what notebook I try to open, I get the internal server error.
> Thank you.

Try updating dev-python/nbconvert to a version newer than the stable one.

You probably did this the same way as me, keywording only what was really 
necessary on an otherwise stable system. Problem is, notebooks have an 
internal versioning, and nbconvert-5.2 doesn't support recent versions 
anymore. After updating nbconvert things worked fine for me.

(Time to fix this, I know, but there's only so many hours in the day...)

-- 
Andreas K. Hüttel
dilfri...@gentoo.org
Gentoo Linux developer
(council, toolchain, base-system, perl, libreoffice)

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] jupyter notebook 500 : Internal Server Error

2020-06-25 Thread Amlesh Sivanantham
Do you have this issue when you run jupyter from a virtual environment?

On Thu, Jun 25, 2020 at 12:45 PM Andrés Becerra Sandoval <
andres.bece...@gmail.com> wrote:

>
>
> El jue., 25 de jun. de 2020 a la(s) 14:14, Valmor de Almeida (
> val.gen...@gmail.com) escribió:
>
>> Hello,
>> I had to enable ~amd64 to emerge jupyter so I know this is bound for
>> problems. However, anyone there able to use jupyter notebooks in
>> gentoo?
>> No matter what notebook I try to open, I get the internal server error.
>> Thank you.
>> --
>> Valmor
>>
>>
> Not much help, but I have not had problems with jupyter for years, with
> ~amd64 profile.
>
> --
>   Andrés Becerra Sandoval
>
>


Re: [gentoo-user] jupyter notebook 500 : Internal Server Error

2020-06-25 Thread Urs Schütz

On 2020-06-25 21:44, Andrés Becerra Sandoval wrote:



El jue., 25 de jun. de 2020 a la(s) 14:14, Valmor de Almeida 
(val.gen...@gmail.com ) escribió:


Hello,
I had to enable ~amd64 to emerge jupyter so I know this is bound for
problems. However, anyone there able to use jupyter notebooks in
gentoo?
No matter what notebook I try to open, I get the internal server error.
Thank you.
--
Valmor


Not much help, but I have not had problems with jupyter for years, with 
~amd64 profile.


--
   Andrés Becerra Sandoval



I isolate jupyter (actually jupyterlab) in an separate python 
environment. I do use pipenv to manage the python environment. It boils 
down to three commands:


$>  cd projectfolder
projectfolder $>  pipenv install
projectfolder $>  pipenv shell
projectfolder $>  pipenv install jupyter-lab

pipenv itself can be installed with emerge. pipenv resolves the 
dependencies within the virtual python environment.
This way of working with python solved most of my troubles with ~amd64 
python packages. python packages for system and for programming purposes 
stay separate this way.


 --
Urs Schütz



Re: [gentoo-user] jupyter notebook 500 : Internal Server Error

2020-06-25 Thread Andrés Becerra Sandoval
El jue., 25 de jun. de 2020 a la(s) 14:14, Valmor de Almeida (
val.gen...@gmail.com) escribió:

> Hello,
> I had to enable ~amd64 to emerge jupyter so I know this is bound for
> problems. However, anyone there able to use jupyter notebooks in
> gentoo?
> No matter what notebook I try to open, I get the internal server error.
> Thank you.
> --
> Valmor
>
>
Not much help, but I have not had problems with jupyter for years, with
~amd64 profile.

-- 
  Andrés Becerra Sandoval


[gentoo-user] jupyter notebook 500 : Internal Server Error

2020-06-25 Thread Valmor de Almeida
Hello,
I had to enable ~amd64 to emerge jupyter so I know this is bound for
problems. However, anyone there able to use jupyter notebooks in
gentoo?
No matter what notebook I try to open, I get the internal server error.
Thank you.
--
Valmor