iPython with Django : CommandError: No notebook (Python) kernel specs found -
i'm new jupyter/ipython
, django
. have django 1.9.5
installed on ubuntu 16.04
, application running fine. want configure ipython(version 5.1.0)
used django
application. trying call ipython notebook (browser) django later can used extensively in application through user interface.
when try run command below
$./manage.py shell_plus --notebook
i error:
[w 13:46:39.247 notebookapp] unrecognized json config file version, assuming version 1 [i 13:46:41.082 notebookapp] [nb_conda_kernels] enabled, 2 kernels found [i 13:46:41.114 notebookapp] writing notebook server cookie secret /run/user/1000/jupyter/notebook_cookie_secret [i 13:46:41.399 notebookapp] ✓ nbpresent html export enabled [w 13:46:41.399 notebookapp] ✗ nbpresent pdf export disabled: no module named nbbrowserpdf.exporters.pdf [i 13:46:41.409 notebookapp] [nb_conda] enabled [i 13:46:41.507 notebookapp] [nb_anacondacloud] enabled **commanderror: no notebook (python) kernel specs found**
to resolve tried: ipython2 kernelspec install-self --user
under home directory .local/share/jupyter/kernels
folder there kernel.json
file
i'm not sure why i'm still getting same error. suggestion helpful in resolving issue. thank you.
to achieve launching ipython notebook django tried following:
- installed django-extensions:
pip install django-extensions
- in django
settings.py
file added linedjango_extensions
installed_apps
- ran
ipython profile create
, uncommented line :c.interactiveshellapp.extensions = ['django_notebook']
i had remove jupyter notebook extensions resolved issue:
$conda remove nb_conda $ python manage.py shell_plus --notebook [i 09:09:19.586 notebookapp] writing notebook server cookie secret /run/user/1000/jupyter/notebook_cookie_secret [i 09:09:19.831 notebookapp] serving notebooks local directory: /home/venkateshpatil1/dir/dir1/sc [i 09:09:19.832 notebookapp] 0 active kernels [i 09:09:19.832 notebookapp] jupyter notebook running at: http://localhost:8888/ [i 09:09:19.833 notebookapp] use control-c stop server , shut down kernels (twice skip confirmation).
Comments
Post a Comment