Error loading notebook jupiter яндекс браузер

NeilAlishev / Instruction.md Это очень частая проблема, которая появляется на некоторых ОС. Дело в том, что среда разработки запустилась, но браузер не открылся автоматически. Как решить эту проблему? В первую очередь, попробуйте запустить Anaconda Navigator с правами администратора (правой кнопкой мыши нажать на иконку Anaconda Navigator, во всплывающем меню выбрать «Запуск от имени администратора»). […]

Содержание

  1. NeilAlishev / Instruction.md
  2. Error loading Notebook: error #1623
  3. Comments
  4. Как запустить Jupyter Notebook в браузере без бэкенда
  5. Полноценный дистрибутив JupyterLab в браузере
  6. Pyolite — поддерживаемое Pyodide ядро Python
  7. IPython в браузере
  8. Интерактивная визуализация
  9. Поддержка виджетов Jupyter
  10. Больше, чем просто Python
  11. JupyterLite гибко настраивается
  12. Развёртывание
  13. Широкий спектр вариантов
  14. Как быстро попробовать JupyterLite
  15. Локальный запуск

NeilAlishev / Instruction.md

Это очень частая проблема, которая появляется на некоторых ОС. Дело в том, что среда разработки запустилась, но браузер не открылся автоматически.

Как решить эту проблему?

В первую очередь, попробуйте запустить Anaconda Navigator с правами администратора (правой кнопкой мыши нажать на иконку Anaconda Navigator, во всплывающем меню выбрать «Запуск от имени администратора»). Теперь, запустите Jupyter Notebook.

Если все равно не открывается окно браузера, выполните инструкции описанные далее.

Запустите программу, которая называется CMD.exe Prompt (может также называться Anaconda Prompt), нажав на Launch. Эта программа находится тут же, в Anaconda Navigator, рядом с программой Jupyter Notebook. После нажатия на Launch, должна открыться командная строка. Если этой программы нет в Anaconda Navigator, можно найти программу «Anaconda Prompt» на компьютере с помощью обычного поиска по программам.

В этой командной строке мы должны выполнить команду jupyter notebook list (если команда не сработала, попробуйте сначала выполнить команду jupyter notebook list -V , а потом уже команду jupyter notebook list )

Вышеупомянутая команда показывает тот адрес, по которому мы сможем получить доступ к нашей среде разработки. Адрес имеет вид: http://localhost:8888/?token=СЛУЧАЙНАЯ_ПОСЛЕДОВАТЕЛЬНОСТЬ_БУКВ_И_ЦИФР

Вам необходимо скопировать этот адрес, вставить его в адресную строку вашего браузера и перейти на эту страницу. После этого откроется среда разработки Jupyter Notebook. Можно работать.

Чтобы скопировать адрес из командной строки Windows, необходимо кликнуть правой кнопкой мыши в любом месте командной строки. В выпадающем меню надо выбрать пункт «пометить». После этого, можно будет выделить курсором интересующий нас адрес. После того, как адрес будет выделен, надо нажать на клавишу Enter на вашей клавиатуре. Готово — адрес скопирован в буфер обмена. Можно его вставлять в адресную строку браузера.

ОС Linux или Mac OS: Надо просто открыть терминал и там написать jupyter notebook Полученный адрес надо скопировать в адресную строку браузера.

Источник

Error loading Notebook: error #1623

This super helpful error is accompanied in the console by:

the notebook is here

The text was updated successfully, but these errors were encountered:

using jupyter notebook —NotebookApp.ignore_minified_js=True heatmap.ipynb yields:

you need to add tests for this option…

OK, hacking around to quick & dirtily fix the above issue and the fact that the error message has no indication of what request failed, i found out that it’s:

Thanks for digging into that, I think the ignore_minified_js is broken in general. Will investiagate.

Marking as 4.3 optimistically.

note that i only used ignore_minified_js to help me debug the original issue. it being broken didn’t help here, but also isn’t as important as the fact that jupyter notebook simply refuses to render a perfectly fine notebook, and gives no error message at all.

i think that’s a bad enough bug that it has to be fixed in a bugfix version. it hit me pretty hard, but luckily i could use nbconvert to get my code and finish my work using another environment.

if we want to do it by the book, i think the steps would be

  1. fix ignore_minified_js
  2. add a test for it, so that it never breaks again
  3. add the requests being made to the log
  4. fix that error message: it should show that 1. a request failed and 2. which request it was
  5. find the real bug and fix it
    ✓ ignore_minified_js is gone in master, and the typeahead URL fix is in

load minified typeahead.min.js #1917 for 4.x (already fixed in master).

  • ✓ it’s gone, see 1.
  • ✓ All requests are logged by the server with —debug .
  • ✓ The current error (4.x) when /api/contents fails with 404 looks like this:
    1. it’s still unclear what the real bug is. It looks like the heatmap.ipynb file doesn’t exist, so 404 is the right thing to do. However, the notebook page should have 404’d itself if that’s true. I can open the example notebook without issue, so it doesn’t seem to have to do with the contents of the file itself. Perhaps it had to do with its permissions on disk?

    cool! thank you for all the fixes!

    about 5.: let me assure you: it existed.

    i also didn’t know what could have changed the permissions, as recreating the notebook would make the error reappear.

    did you change something, save it and reload it? that made the error appear for me in the past

    I don’t doubt it, I’m just unclear on what exactly was going wrong, so I can chase it down. The 404 suggests that the file is gone (or a URL was built incorrectly), but I don’t know how that would happen.

    Источник

    Как запустить Jupyter Notebook в браузере без бэкенда

    К старту нашего флагманского курса по Data Science представляем перевод обзора JupyterLite прямо из блога его разработчиков. JupyterLite — это перезагрузка множества попыток создать полный статический выполняемый в браузере дистрибутив Jupyter, чтобы не было необходимости запускать сервер Jupyter.

    Цель проекта — дать лёгкую вычислительную среду в браузере, доступную по одному клику спустя несколько секунд, без установки чего-либо на устройство конечного пользователя. При работе с дистрибутивами в браузере не нужно предоставлять среду выполнения на бэкенде. Приложение в основном представляет собой набор статических файлов, поэтому проще масштабируется и его легче развёртывать.

    JupyterLite работает в браузере на статическом веб-сайте ReadTheDocs

    Полноценный дистрибутив JupyterLab в браузере

    JupyterLite разработан с нуля, он повторно использует множество плагинов и компонентов JupyterLab как есть. В дополнение к JupyterLab JupyterLite по умолчанию работает с интерфейсом RetroLab:

    JupyterLite с интерфейсом RetroLab

    Благодаря повторному использованию компонентов JupyterLab JupyterLite получает преимущества многих улучшений: новых функций, исправлений специальных возможностей и улучшений обслуживания. В JupyterLite также можно включить совместную работу в реальном времени из JupyterLab 3.1.

    Совместная работа в режиме реального времени, JupyterLite в ReadTheDocs

    Pyolite — поддерживаемое Pyodide ядро Python

    Pyodide — это скомпилированный в WebAssembly интерпретатор CPython 3.8, позволяющий запускать Python в браузере, а также скомпилированных научных пакетов Python.

    Из индекса пакетов PyPI Pyodide может установить любой пакет wheel, он содержит комплексный интерфейс внешних функций, предоставляющий экосистему пакетов Python для JavaScript и пользовательский интерфейс браузера для Python, в том числе DOM.

    Pyodide: Python и его скомпилированный в WebAssembly научный стек

    С версии 0.17 за последние несколько лет Pyodide получил множество улучшений: меньший размер двоичных файлов, поддержку asyncio и улучшение трансляции типов между Python и JavaScript.

    JupyterLite по умолчанию поставляется с Pyolite — ядром Python, которое поддерживается Pyodide. Это ядро работает в веб-воркере, а значит при выполнении интенсивных вычислений не блокирует основной поток пользовательского интерфейса.

    IPython в браузере

    Pyolite теперь работает на IPython, что открывает доступ к его магическим командам, завершению кода, расширенному отображению, интерактивным виджетам и многим другим функциям.

    IPython в JupyterLite

    Интерактивная визуализация

    В JupyterLite также поддерживаются многие библиотеки визуализации, такие как Altair и Plotly, что позволяет быстро и удобно создавать рисунки и графики:

    Altair в JupyterLite

    Поддержка виджетов Jupyter

    В основе виджетов Jupyter лежит спецификация кастомных сообщений протокола Jupyter между ядром и интерфейсом. Мартин Рену добавил поддержку Comms в ядре Pyolite, что позволило многим существующим основным и сторонним виджетам, например bqplot, ipyleaflet и ipycanvas, работать из коробки.

    JupyterLite по умолчанию поддерживает виджеты Jupyter

    Больше, чем просто Python

    JupyterLite работает со множеством ядер. Дистрибутив по умолчанию содержит ядра JavaScript и p5:

    В JupyterLite доступно несколько ядер.

    Эти ядра выполняются в IFrame как изолированные окружения. С помощью протокола отображения Jupyter можно легко отображать кастомные анимации:

    Ядро p5.js в JupyterLite

    JupyterLite гибко настраивается

    Как и многие инструменты Jupyter, JupyterLite легко настраивается. С версии 3.0 поддерживается новая встроенная система расширения JupyterLab, а существующие расширения JupyterLab легко повторно использовать в JupyterLab.

    Расширение JupyterLab Drawio, работающее в JupyterLite

    Серверная часть JupyterLite в браузере также использует плагины. Сервер — это регистрирующее несколько плагинов приложение Lumino без оболочки, где регистрируются, например, менеджер содержимого или служба сеансов.

    Такой подход делает замену одного плагина на другой очень удобной для разработчиков или администраторов сайта.

    Пример: замена менеджера содержимого по умолчанию, который хранит блокноты и файлы в LocalStorage, на менеджера, сохраняющего содержимое в AWS S3.

    Обзор архитектуры JupyterLite на основе плагинов

    Модульность и гибкость JupyterLite позволяют легко добавлять ядра. Ядро Basthon, прототип для запуска которого разрабатывается в этом репозитории, использует несколько иную модель выполнения, чем Pyolite: оно запускается в основном потоке пользовательского интерфейса, поэтому пользователи могут напрямую управлять DOM главного окна из Python.

    Pyolite, в свою очередь, запускается в веб-воркере как фоновый поток. Оба подхода имеют свои плюсы и минусы, а система плагинов JupyterLite позволяет авторам расширений полностью контролировать свои ядра.

    Basthon в JupyterLite

    Развёртывание

    JupyterLite легко разворачивается как статический веб-сайт. Никакой сложной настройки, никаких проблем с масштабируемостью. Только простой, обычный HTTP-сервер статических файлов.

    Поэтому появляются варианты: Nginx, Binder, GitHub Pages или страницы GitLab, Vercel, Netlify и многие другие. Можно развернуть JupyterLite в ReadTheDocs, где размещён и постоянно обновляется демонстрационный сайт JupyterLite.

    Многие сценарии развёртывания уже задокументированы здесь, также есть демонстрационный шаблон, позволяющий легко развернуть настраиваемый веб-сайт JupyterLite на страницах GitHub одним кликом.

    Благодаря работе Николаса Боллвега в JupyterLite для удобства развёртывания появился инструмент командной строки jupyterlite. Одна из задач JupyterLite — позволить любому пользователю собрать собственный дистрибутив с необходимым ему набором плагинов и расширений. Сегодня для этого нужно работать с jupyterlite, но можно представить экспорт удобнее:

    Макет экспортёра JupyterLite

    Широкий спектр вариантов

    Благодаря простоте развёртывания и низкому порогу входа JupyterLite отлично подходит для широкого спектра задач. В образовательном пространстве он упрощает доступ к учебным материалам и вычислительным средам. Преподаватели и студенты могут сосредоточиться на содержании своих занятий, не беспокоясь о развёртывании и мониторинге серверов.

    С помощью JupyterLite мы также надеемся привлечь новую волну пользователей Jupyter и сделать всю экосистему ещё доступнее для новичков и более широкого сообщества. В случае небольших проектов это может даже снизить нагрузку на mybinder.org посредством развёрнутой на CDN версии JupyterLite — binderlite.

    Как быстро попробовать JupyterLite

    JupyterLite можно протестировать по этой ссылке.

    Локальный запуск

    Во-первых, установите пакет CLI:

    Затем создайте веб-сайт JupyterLite и разместите его на локальном сервере:

    Документация приложения jupyterlite находится здесь.

    А поработать с JupyterLab или JupyterLite на практике вы сможете на наших курсах по Data Science, а на курсе «Machine Learning и Deep Learning» используется оборудование нашего партнёра и лидера в области вычислений для искусственного интеллекта — компании NVIDIA. Кроме того, здесь вы можете узнать, как начать карьеру или прокачаться, например, в Fullstack-разработке на Python:

    Data Science и Machine Learning

    Источник

    @flying-sheep

    This super helpful error is accompanied in the console by:

    API request failed (404): error
    Error stack trace while loading notebook was:
    wrap_ajax_error@http://localhost:8888/static/notebook/js/main.min.js?v=1c2abb797e9945d6ce7d58ae051fe985:12764:29
    promising_ajax/</settings.error@http://localhost:8888/static/notebook/js/main.min.js?v=1c2abb797e9945d6ce7d58ae051fe985:12785:24
    x.Callbacks/l@http://localhost:8888/static/notebook/js/main.min.js?v=1c2abb797e9945d6ce7d58ae051fe985:87:24877
    x.Callbacks/c.fireWith@http://localhost:8888/static/notebook/js/main.min.js?v=1c2abb797e9945d6ce7d58ae051fe985:87:25702
    k@http://localhost:8888/static/notebook/js/main.min.js?v=1c2abb797e9945d6ce7d58ae051fe985:89:5371
    .send/t/<@http://localhost:8888/static/notebook/js/main.min.js?v=1c2abb797e9945d6ce7d58ae051fe985:89:9122
    

    the notebook is here

    @flying-sheep



    Copy link


    Contributor

    Author

    using jupyter notebook --NotebookApp.ignore_minified_js=True heatmap.ipynb yields:

    GET http://localhost:8889/static/components/jquery-typeahead/dist/jquery.typeahead.js [HTTP/1.1 404 Not Found 271ms]
    Error: Script error for "typeahead"
    http://requirejs.org/docs/errors.html#scripterror
    

    you need to add tests for this option…

    @flying-sheep



    Copy link


    Contributor

    Author

    OK, hacking around to quick & dirtily fix the above issue and the fact that the error message has no indication of what request failed, i found out that it’s:

    /api/contents/heatmap.ipynb?type=notebook

    @Carreau

    Thanks for digging into that, I think the ignore_minified_js is broken in general. Will investiagate.

    Marking as 4.3 optimistically.

    @flying-sheep



    Copy link


    Contributor

    Author

    note that i only used ignore_minified_js to help me debug the original issue. it being broken didn’t help here, but also isn’t as important as the fact that jupyter notebook simply refuses to render a perfectly fine notebook, and gives no error message at all.

    i think that’s a bad enough bug that it has to be fixed in a bugfix version. it hit me pretty hard, but luckily i could use nbconvert to get my code and finish my work using another environment.

    @flying-sheep



    Copy link


    Contributor

    Author

    if we want to do it by the book, i think the steps would be

    1. fix ignore_minified_js
    2. add a test for it, so that it never breaks again
    3. add the requests being made to the log
    4. fix that error message: it should show that 1. a request failed and 2. which request it was
    5. find the real bug and fix it

    @takluyver

    @minrk

    1. ✓ ignore_minified_js is gone in master, and the typeahead URL fix is in load minified typeahead.min.js #1917 for 4.x (already fixed in master).
    2. ✓ it’s gone, see 1.
    3. ✓ All requests are logged by the server with --debug.
    4. ✓ The current error (4.x) when /api/contents fails with 404 looks like this:

    screen shot 2016-11-23 at 13 52 49

    1. it’s still unclear what the real bug is. It looks like the heatmap.ipynb file doesn’t exist, so 404 is the right thing to do. However, the notebook page should have 404’d itself if that’s true. I can open the example notebook without issue, so it doesn’t seem to have to do with the contents of the file itself. Perhaps it had to do with its permissions on disk?

    @flying-sheep



    Copy link


    Contributor

    Author

    cool! thank you for all the fixes!


    about 5.: let me assure you: it existed.

    i also didn’t know what could have changed the permissions, as recreating the notebook would make the error reappear.

    did you change something, save it and reload it? that made the error appear for me in the past

    @minrk

    I don’t doubt it, I’m just unclear on what exactly was going wrong, so I can chase it down. The 404 suggests that the file is gone (or a URL was built incorrectly), but I don’t know how that would happen.

    @flying-sheep



    Copy link


    Contributor

    Author

    OK, i get:

    $ python -m notebook --debug heatmap.ipynb                                                                         master ⬆ ◼
    [D 13:26:21.286 NotebookApp] Searching ['/home/phil/Dev/Python/Jupyter/notebook', '/home/phil/.jupyter', '/usr/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files
    [D 13:26:21.287 NotebookApp] Looking for jupyter_config in /etc/jupyter
    [D 13:26:21.287 NotebookApp] Looking for jupyter_config in /usr/local/etc/jupyter
    [D 13:26:21.287 NotebookApp] Looking for jupyter_config in /usr/etc/jupyter
    [D 13:26:21.287 NotebookApp] Looking for jupyter_config in /home/phil/.jupyter
    [D 13:26:21.287 NotebookApp] Looking for jupyter_config in /home/phil/Dev/Python/Jupyter/notebook
    [D 13:26:21.288 NotebookApp] Looking for jupyter_notebook_config in /etc/jupyter
    [D 13:26:21.288 NotebookApp] Loaded config file: /etc/jupyter/jupyter_notebook_config.json
    [D 13:26:21.288 NotebookApp] Looking for jupyter_notebook_config in /usr/local/etc/jupyter
    [D 13:26:21.288 NotebookApp] Looking for jupyter_notebook_config in /usr/etc/jupyter
    [D 13:26:21.288 NotebookApp] Looking for jupyter_notebook_config in /home/phil/.jupyter
    [D 13:26:21.288 NotebookApp] Looking for jupyter_notebook_config in /home/phil/Dev/Python/Jupyter/notebook
    [I 13:26:21.297 NotebookApp] It looks like you're running the notebook from source.
        If you're working on the Javascript of the notebook, try running
        
            npm run build:watch
        
        in another terminal window to have the system incrementally
        watch and build the notebook's JavaScript for you, as you make changes.
        
    [D 13:26:26.051 NotebookApp] Loading extension jupyter_nbextensions_configurator
    [D 13:26:26.051 NotebookApp]   Editing template path to add /usr/lib/python3.5/site-packages/jupyter_nbextensions_configurator/templates
    [D 13:26:26.051 NotebookApp]   Editing nbextensions path to add /usr/lib/python3.5/site-packages/jupyter_nbextensions_configurator/static
    [D 13:26:26.052 NotebookApp]   Adding new handlers
    [I 13:26:26.052 NotebookApp] Loaded extension jupyter_nbextensions_configurator
    [I 13:26:26.056 NotebookApp] Serving notebooks from local directory: /home/phil/Dev/Python/Jupyter/notebook
    [I 13:26:26.056 NotebookApp] 0 active kernels 
    [I 13:26:26.056 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/?token=24f649a8fe9c5b453e489a1330c85f7edeba7cbbc59ad39f
    [I 13:26:26.056 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
    [D 13:26:26.690 NotebookApp] Using contents: services/built/contents
    [D 13:26:26.726 NotebookApp] 200 GET /notebooks/heatmap.ipynb?token=d57eade08375cb03236d717739e19928c1410b561f2e5e56 (::1) 37.03ms
    [D 13:26:27.268 NotebookApp] Using contents: services/built/contents
    [D 13:26:27.269 NotebookApp] 200 GET /notebooks/heatmap.ipynb?token=d57eade08375cb03236d717739e19928c1410b561f2e5e56 (::1) 1.71ms
    [D 13:26:27.505 NotebookApp] 304 GET /custom/custom.css (::1) 0.89ms
    ...

    and

    API request failed (404): error
    
    Error stack trace while loading notebook was:  1.main.min.js:29980:466
    
    wrap_ajax_error@http://localhost:8888/static/services/built/contents.js:1032:30
    promising_ajax/</settings.error@http://localhost:8888/static/services/built/contents.js:1053:25
    x.Callbacks/l@http://localhost:8888/static/components/jquery/jquery.min.js?v=ccd0edd113b78697e04fb5c1b519a5cd:4:24877
    x.Callbacks/c.fireWith@http://localhost:8888/static/components/jquery/jquery.min.js?v=ccd0edd113b78697e04fb5c1b519a5cd:4:25702
    k@http://localhost:8888/static/components/jquery/jquery.min.js?v=ccd0edd113b78697e04fb5c1b519a5cd:6:5371
    .send/t/<@http://localhost:8888/static/components/jquery/jquery.min.js?v=ccd0edd113b78697e04fb5c1b519a5cd:6:9122
    

    the only 404 the inspector tells me about is http://localhost:8888/nbextensions/widgets/notebook/js/extension.js

    @takluyver

    Does anyone have an change for this in mind that should go into 4.3? If not, I’m going to bump it so we can close in on this release.

    Ping @SylvainCorlay as the last thing sounds like widgets might be involved.

    @flying-sheep



    Copy link


    Contributor

    Author

    by the way: i still see “error: error”, so

    1. ✓ The current error (4.x) when /api/contents fails with 404 looks like this

    doesn’t apply to other APIs (if that failed AJAX request was indeed the failed API request)

    @minrk

    Something’s weird if those logs are accurate, because it means whatever’s getting a 404 is not being served by the notebook server (all 404 errors are always logged by the server, and all requests are logged by the server with --debug) — it’s coming from a different server. Are you perhaps running the notebook server behind a proxy (nginx, apache)? Can you run the notebook server without any extensions or custom.js?

    @flying-sheep



    Copy link


    Contributor

    Author

    how can i do this without tracking down and moving all the config? is there a command line switch?

    @takluyver

    I think running with JUPYTER_CONFIG_DIR=/tmp should ignore all of your config.

    @flying-sheep



    Copy link


    Contributor

    Author

    I’M AN IDIOT

    this was fucking uBlock.

    easylist has a filter /heatmap.*?

    sorry for wasting your time 😢

    @takluyver

    No worries, these things happen. I don’t think I would have guessed that it was a browser extension. Even when you said that, I though ‘I use uBlock; how have I not seen this?’. And then I noticed that heatmap is the name of the notebook you were trying to load.

    I’d still like to see if it’s possible to make the error message more meaningful, but with so much complex software interacting, it may well be hard.

    @flying-sheep



    Copy link


    Contributor

    Author

    yeah, shall we open a new issue with just the real information from this one in it?

    called “meaningful error message when request fails”

    i mean, it could still fail for some other reason than being blocked.

    @takluyver

    Go for it, especially if you can figure out where the error message comes from and if there’s any way it can be improved :-)

    @voidcase

    @flying-sheep

    I’M AN IDIOT

    this was fucking uBlock.

    easylist has a filter /heatmap.*?

    sorry for wasting your time cry

    Thank you so much! I never would have guessed this! 😃

    Best Wishes
    Another guy with a heatmap.ipynb

    @flying-sheep



    Copy link


    Contributor

    Author

    Great! Happy to be of service

    @github-actions
    github-actions
    bot

    locked as resolved and limited conversation to collaborators

    Apr 1, 2021

    Как только я открыл файл блокнота с помощью Jupyter (он просит меня преобразовать файл), я больше не могу открыть его в стандартном блокноте IPython. Я получаю следующую ошибку:

    Error loading notebook
    Bad Request
    
    2014-12-21 04:13:03.203 [NotebookApp] WARNING | Unreadable Notebook: /FunIT experiment.ipynb global name  'NBFormatError' is not defined
    WARNING:tornado.access:400 GET /api/notebooks/FunIT%20experiment.ipynb?_=1419153182928 (::1) 3.11ms referer=http://localhost:8888/notebooks/FunIT%20experiment.ipynb
    

    Пример таких поврежденных файлов: https://www.dropbox.com/s/7io99wpoivxmc8f/FunIT%20experiment.ipynb? = 0 дл

    Как я могу отменить этот процесс? Мне нужно открыть эти файлы с помощью стандартного ноутбука IPython (v2.2.0).

    3 ответа

    Лучший ответ

    Эта проблема связана с несовместимостью ноутбука и вашей версии IPython. В моей текущей версии IPython:

    ipython --version 
    2.3.1
    

    Когда я пытаюсь открыть файл (FunIT эксперимент.ipynb):

    ipython notebook FunIT experiment.ipynb 
    

    Я получаю следующее сообщение об ошибке

    Ошибка загрузки блокнота

    Неразборчивая записная книжка: FunIT эксперимент.ipynb Неподдерживаемая версия nbformat 4

    Сообщение об ошибке указывает на то, что формат ноутбука не поддерживается. Давайте установим версию для разработчиков, https://github.com/ipython/ipython. Я использовал виртуальную среду, http://docs.python-guide.org/en / latest / dev / virtualenvs /, но это не обязательно.

    Установить виртуальную среду

    pip install virtualenv
    mkdir test
    cd test
    virtualenv venv
    source venv/bin/activate
    

    Установка разработки Ipython Notebook

    git clone --recursive https://github.com/ipython/ipython.git
    cd ipython
    pip install -e ".[notebook]" --user
    

    Теперь у меня есть текущая версия для разработки.

    ipython --version
    3.0.0-dev
    

    И я могу открыть файл с записной книжки ipython

    ipython notebook FunIT experiment.ipynb
    

    Вот фрагмент кода:

    import pandas as pd
    import numpy as np
    from pandas.tools.pivot import pivot_table
    #from sklearn.metrics import roc_auc_score
    import matplotlib.pyplot as plt
    %pylab inline
    #from sklearn.neighbors.kde import KernelDensity
    import seaborn as sns
    import scipy.stats as st
    sns.set()
    


    11

    maiaini
    22 Дек 2014 в 01:39

    Обновление IPython исправило это для меня:

    pip install ipython --upgrade


    10

    leekaiinthesky
    6 Май 2015 в 16:00

    Это работает для меня отлично:

    pip install jupyter
    


    9

    Sean
    18 Ноя 2015 в 16:22

    NeilAlishev / Instruction.md

    Это очень частая проблема, которая появляется на некоторых ОС. Дело в том, что среда разработки запустилась, но браузер не открылся автоматически.

    Как решить эту проблему?

    В первую очередь, попробуйте запустить Anaconda Navigator с правами администратора (правой кнопкой мыши нажать на иконку Anaconda Navigator, во всплывающем меню выбрать «Запуск от имени администратора»). Теперь, запустите Jupyter Notebook.

    Если все равно не открывается окно браузера, выполните инструкции описанные далее.

    Запустите программу, которая называется CMD.exe Prompt (может также называться Anaconda Prompt), нажав на Launch. Эта программа находится тут же, в Anaconda Navigator, рядом с программой Jupyter Notebook. После нажатия на Launch, должна открыться командная строка. Если этой программы нет в Anaconda Navigator, можно найти программу «Anaconda Prompt» на компьютере с помощью обычного поиска по программам.

    В этой командной строке мы должны выполнить команду jupyter notebook list (если команда не сработала, попробуйте сначала выполнить команду jupyter notebook list -V , а потом уже команду jupyter notebook list )

    Вышеупомянутая команда показывает тот адрес, по которому мы сможем получить доступ к нашей среде разработки. Адрес имеет вид: http://localhost:8888/?token=СЛУЧАЙНАЯ_ПОСЛЕДОВАТЕЛЬНОСТЬ_БУКВ_И_ЦИФР

    Вам необходимо скопировать этот адрес, вставить его в адресную строку вашего браузера и перейти на эту страницу. После этого откроется среда разработки Jupyter Notebook. Можно работать.

    Чтобы скопировать адрес из командной строки Windows, необходимо кликнуть правой кнопкой мыши в любом месте командной строки. В выпадающем меню надо выбрать пункт «пометить». После этого, можно будет выделить курсором интересующий нас адрес. После того, как адрес будет выделен, надо нажать на клавишу Enter на вашей клавиатуре. Готово — адрес скопирован в буфер обмена. Можно его вставлять в адресную строку браузера.

    ОС Linux или Mac OS: Надо просто открыть терминал и там написать jupyter notebook Полученный адрес надо скопировать в адресную строку браузера.

    Источник

    Jupyter Notebook Error: error loading notebook #10174

    Comments

    I had an issue opening any of my jupyter notebooks.

    An unknown error occurred while loading this notebook. This version can load notebook formats v4 or earlier. See the server log for details.

    [E 09:04:29.984 NotebookApp] Unhandled error in API request
    Traceback (most recent call last):
    File «/opt/packages/anaconda3.4.1.1/lib/python3.5/site-packages/traitlets/traitlets.py», line 501, in get
    value = obj._trait_values[self.name]
    KeyError: ‘notary’

    I have tried the following methods as suggested on similar issues, but none worked.

    cd $(jupyter —data-dir) mv nbsignatures.db nbsignatures.db.bak

    The text was updated successfully, but these errors were encountered:

    Can you check that your notebook and nbformat packages are up to date?

    Thanks takluyver. jupyter is version 4.1.0. Not sure how to check nbformat. Sorry, newbie here. A little more context. I’m using the notebook on a company server, I asked around and looks like nobody else had the same issue.

    jupyter —version
    4.1.0

    The easiest way to see the version of all the different bits is to run pip list (or conda list if you installed with conda). In particular, jupyter —version only gives you the version of the jupyter_core package, which may be different from the notebook version you’re using.

    This is what I see on the conda tab on the notebook.
    nbformat 4.0.1 py35_0
    notebook 4.2.1 py35_0

    There should be newer versions of both of those if you want to upgrade with conda update notebook nbformat .

    My issue was resolved, looks like I accidentally added a c.session value instead of the default value in jupyter_notebook_config.py which was causing the issue. Once I commented out that line the issue is gone. I found this out only when I tried to copy a jupyter notebook file (which couldn’t open but I tried anyway), it gave me an error message indicating some abnormal value of notebooknotary — I should have noticed it’s the same type of error in log file, I just didn’t know where to look for the notebook notary value. Thanks.

    I get the same error i.e. An unknown error occurred while loading this notebook. This version can load notebook formats v4 or earlier. See the server log for details.

    • I have tried everything that was suggested but still keep getting the same error.

    Question: Where I can find this log file?
    Thanks

    i am getting the same error and i am unable to solve on kubuntu .kindly help.

    Same problem here.

    I am having the same issue.

    Try clearing the hard disk memory! Jupyter creates this error while opening a new or existing notebook, if there is not enough disk space

    I had this problem and turns out I just ran out of space. So I deleted a bunch of large files and now I can open all my notebooks again.

    I had this issue and it turned out to be the dropbox folder that I was using to save the notebooks. I had forgot that I turned on smart sync and it made the entire folder online only. After changing the smart sync settings to local only, I could open the notebook.

    I had this issue and it turned out to be the dropbox folder that I was using to save the notebooks. I had forgot that I turned on smart sync and it made the entire folder online only. After changing the smart sync settings to local only, I could open the notebook.

    Just adding comment to that effect : had migrated machine and DB defaulted to smartsync. So i got the dreaded message :

    An unknown error occurred while loading this notebook. This version can load notebook formats v4 or earlier. See the server log for details.

    OSError: [Errno 5] Input/output error:

    Combo of both of those can be caused by files that are not saved locally by Dropbox, hope this gets the answer found on search engine for others.

    Источник

    Error loading Notebook: error #1623

    Comments

    This super helpful error is accompanied in the console by:

    the notebook is here

    The text was updated successfully, but these errors were encountered:

    using jupyter notebook —NotebookApp.ignore_minified_js=True heatmap.ipynb yields:

    you need to add tests for this option…

    OK, hacking around to quick & dirtily fix the above issue and the fact that the error message has no indication of what request failed, i found out that it’s:

    Thanks for digging into that, I think the ignore_minified_js is broken in general. Will investiagate.

    Marking as 4.3 optimistically.

    note that i only used ignore_minified_js to help me debug the original issue. it being broken didn’t help here, but also isn’t as important as the fact that jupyter notebook simply refuses to render a perfectly fine notebook, and gives no error message at all.

    i think that’s a bad enough bug that it has to be fixed in a bugfix version. it hit me pretty hard, but luckily i could use nbconvert to get my code and finish my work using another environment.

    if we want to do it by the book, i think the steps would be

    1. fix ignore_minified_js
    2. add a test for it, so that it never breaks again
    3. add the requests being made to the log
    4. fix that error message: it should show that 1. a request failed and 2. which request it was
    5. find the real bug and fix it
      ✓ ignore_minified_js is gone in master, and the typeahead URL fix is in

    load minified typeahead.min.js #1917 for 4.x (already fixed in master).

  • ✓ it’s gone, see 1.
  • ✓ All requests are logged by the server with —debug .
  • ✓ The current error (4.x) when /api/contents fails with 404 looks like this:
    1. it’s still unclear what the real bug is. It looks like the heatmap.ipynb file doesn’t exist, so 404 is the right thing to do. However, the notebook page should have 404’d itself if that’s true. I can open the example notebook without issue, so it doesn’t seem to have to do with the contents of the file itself. Perhaps it had to do with its permissions on disk?

    cool! thank you for all the fixes!

    about 5.: let me assure you: it existed.

    i also didn’t know what could have changed the permissions, as recreating the notebook would make the error reappear.

    did you change something, save it and reload it? that made the error appear for me in the past

    I don’t doubt it, I’m just unclear on what exactly was going wrong, so I can chase it down. The 404 suggests that the file is gone (or a URL was built incorrectly), but I don’t know how that would happen.

    Источник

    Error loading notebook #121

    Comments

    I tried to open a ipynb file in my google drive and got this alert. There are no error logs printed by the ipython notebook server console.

    The text was updated successfully, but these errors were encountered:

    notebook is in v4 format

    I’m having the same problem; however, it’s only true of notebooks that I uploaded to Google drive from my local file system. If I create a notebook while using jupyterdrive, I don’t get this error.

    @bmyerz , is that true for you too?

    Thanks @Zsailer I’ll try to upload a file to see if this does that too.

    @Zsailer no, when I do new > Python 2, I get another error

    I can successfully create a new text file.

    this is different and tracked/fix in progress into #124

    @KesterTong for some files, (mostly one uploaded or shared with others) Files seem to not get the dowloadUrl anymore (docs seem to say it should ) . The thing that bother me is that the picker po-up everytime as if the App was not authorized. Could there be a problem there ?

    with the latest in master (ee58295), I no longer get this error when loading an existing notebook from drive

    I get this error when loading an existing notebook created by someone else. I do not get it opening my own. The Drive sharing permissions allow me to edit the file, though I am not the owner of the file. The folder containing the file is shared. Reproduced in the reverse direction (the other user cannot open a file created by me, although the other user is allowed to edit the file). This is in python 2.7.3, ipython 4.0.0, and the latest jupyter-drive in master (ee58295).

    I note that I’m able to open the other user’s notebooks when running the notebook app on my laptop instead of my server. My laptop runs python 2.7.8. I attempted with python 2.7.10 on the server, but this didn’t help.

    I am setting CLIENT_ID in

    /.jupyter/nbconfig/common.json and I’ve authorized only this specific host with and without port 8888 for OAuth 2.0. I authorized as both a JavaScript origin and as an authorized redirect. I start the ipython notebook service specifically with this host name and port. The typical error linked to issue #21 goes away with these settings and allows me to move on and access my Google Drive.

    Multiple users are logging into a shared jupyter notebook service and accessing each-other’s notebooks. Jupyter-Drive checks for account authorization for each individual, so I infer the authorization is saved as client-side settings, not on the notebook server. We’ve attempted with and without simultaneous access attempts and simultaneous login.

    In order to replicate the laptop environment as closely as possible on the server, I’ve attempted integrating Jupyter-Drive with JupyterHub. I’ve been unsuccessful. Somehow I’m not accessing OAuth from the correct server origins and/or redirect — JupyterHub does lots of port forwarding and I’ve been unable to determine the appropriate list of ports in the API credentials for OAuth.

    I got the same error and I did some investigation. The requested scope is drive.file which only per-file access to files created or opened by the jupyter-drive. So, in this case, jupyter-drive does not have access to files created by other apps. You can change the scope to drive — Full, permissive scope to access all of a user’s files. At least, it solved my problem. See: https://developers.google.com/drive/v2/web/scopes

    Thank you @szferi! That solved this problem for me. If anyone was having trouble with their own CLIENT_ID, this fixed it. It’s not ideal, since it’s more permissive than it should be but I’m not sure how else to fix this:

    Источник

    Как запустить Jupyter Notebook в браузере без бэкенда

    К старту нашего флагманского курса по Data Science представляем перевод обзора JupyterLite прямо из блога его разработчиков. JupyterLite — это перезагрузка множества попыток создать полный статический выполняемый в браузере дистрибутив Jupyter, чтобы не было необходимости запускать сервер Jupyter.

    Цель проекта — дать лёгкую вычислительную среду в браузере, доступную по одному клику спустя несколько секунд, без установки чего-либо на устройство конечного пользователя. При работе с дистрибутивами в браузере не нужно предоставлять среду выполнения на бэкенде. Приложение в основном представляет собой набор статических файлов, поэтому проще масштабируется и его легче развёртывать.

    JupyterLite работает в браузере на статическом веб-сайте ReadTheDocs

    Полноценный дистрибутив JupyterLab в браузере

    JupyterLite разработан с нуля, он повторно использует множество плагинов и компонентов JupyterLab как есть. В дополнение к JupyterLab JupyterLite по умолчанию работает с интерфейсом RetroLab:

    JupyterLite с интерфейсом RetroLab

    Благодаря повторному использованию компонентов JupyterLab JupyterLite получает преимущества многих улучшений: новых функций, исправлений специальных возможностей и улучшений обслуживания. В JupyterLite также можно включить совместную работу в реальном времени из JupyterLab 3.1.

    Совместная работа в режиме реального времени, JupyterLite в ReadTheDocs

    Pyolite — поддерживаемое Pyodide ядро Python

    Pyodide — это скомпилированный в WebAssembly интерпретатор CPython 3.8, позволяющий запускать Python в браузере, а также скомпилированных научных пакетов Python.

    Из индекса пакетов PyPI Pyodide может установить любой пакет wheel, он содержит комплексный интерфейс внешних функций, предоставляющий экосистему пакетов Python для JavaScript и пользовательский интерфейс браузера для Python, в том числе DOM.

    Pyodide: Python и его скомпилированный в WebAssembly научный стек

    С версии 0.17 за последние несколько лет Pyodide получил множество улучшений: меньший размер двоичных файлов, поддержку asyncio и улучшение трансляции типов между Python и JavaScript.

    JupyterLite по умолчанию поставляется с Pyolite — ядром Python, которое поддерживается Pyodide. Это ядро работает в веб-воркере, а значит при выполнении интенсивных вычислений не блокирует основной поток пользовательского интерфейса.

    IPython в браузере

    Pyolite теперь работает на IPython, что открывает доступ к его магическим командам, завершению кода, расширенному отображению, интерактивным виджетам и многим другим функциям.

    IPython в JupyterLite

    Интерактивная визуализация

    В JupyterLite также поддерживаются многие библиотеки визуализации, такие как Altair и Plotly, что позволяет быстро и удобно создавать рисунки и графики:

    Altair в JupyterLite

    Поддержка виджетов Jupyter

    В основе виджетов Jupyter лежит спецификация кастомных сообщений протокола Jupyter между ядром и интерфейсом. Мартин Рену добавил поддержку Comms в ядре Pyolite, что позволило многим существующим основным и сторонним виджетам, например bqplot, ipyleaflet и ipycanvas, работать из коробки.

    JupyterLite по умолчанию поддерживает виджеты Jupyter

    Больше, чем просто Python

    JupyterLite работает со множеством ядер. Дистрибутив по умолчанию содержит ядра JavaScript и p5:

    В JupyterLite доступно несколько ядер.

    Эти ядра выполняются в IFrame как изолированные окружения. С помощью протокола отображения Jupyter можно легко отображать кастомные анимации:

    Ядро p5.js в JupyterLite

    JupyterLite гибко настраивается

    Как и многие инструменты Jupyter, JupyterLite легко настраивается. С версии 3.0 поддерживается новая встроенная система расширения JupyterLab, а существующие расширения JupyterLab легко повторно использовать в JupyterLab.

    Расширение JupyterLab Drawio, работающее в JupyterLite

    Серверная часть JupyterLite в браузере также использует плагины. Сервер — это регистрирующее несколько плагинов приложение Lumino без оболочки, где регистрируются, например, менеджер содержимого или служба сеансов.

    Такой подход делает замену одного плагина на другой очень удобной для разработчиков или администраторов сайта.

    Пример: замена менеджера содержимого по умолчанию, который хранит блокноты и файлы в LocalStorage, на менеджера, сохраняющего содержимое в AWS S3.

    Обзор архитектуры JupyterLite на основе плагинов

    Модульность и гибкость JupyterLite позволяют легко добавлять ядра. Ядро Basthon, прототип для запуска которого разрабатывается в этом репозитории, использует несколько иную модель выполнения, чем Pyolite: оно запускается в основном потоке пользовательского интерфейса, поэтому пользователи могут напрямую управлять DOM главного окна из Python.

    Pyolite, в свою очередь, запускается в веб-воркере как фоновый поток. Оба подхода имеют свои плюсы и минусы, а система плагинов JupyterLite позволяет авторам расширений полностью контролировать свои ядра.

    Basthon в JupyterLite

    Развёртывание

    JupyterLite легко разворачивается как статический веб-сайт. Никакой сложной настройки, никаких проблем с масштабируемостью. Только простой, обычный HTTP-сервер статических файлов.

    Поэтому появляются варианты: Nginx, Binder, GitHub Pages или страницы GitLab, Vercel, Netlify и многие другие. Можно развернуть JupyterLite в ReadTheDocs, где размещён и постоянно обновляется демонстрационный сайт JupyterLite.

    Многие сценарии развёртывания уже задокументированы здесь, также есть демонстрационный шаблон, позволяющий легко развернуть настраиваемый веб-сайт JupyterLite на страницах GitHub одним кликом.

    Благодаря работе Николаса Боллвега в JupyterLite для удобства развёртывания появился инструмент командной строки jupyterlite. Одна из задач JupyterLite — позволить любому пользователю собрать собственный дистрибутив с необходимым ему набором плагинов и расширений. Сегодня для этого нужно работать с jupyterlite, но можно представить экспорт удобнее:

    Макет экспортёра JupyterLite

    Широкий спектр вариантов

    Благодаря простоте развёртывания и низкому порогу входа JupyterLite отлично подходит для широкого спектра задач. В образовательном пространстве он упрощает доступ к учебным материалам и вычислительным средам. Преподаватели и студенты могут сосредоточиться на содержании своих занятий, не беспокоясь о развёртывании и мониторинге серверов.

    С помощью JupyterLite мы также надеемся привлечь новую волну пользователей Jupyter и сделать всю экосистему ещё доступнее для новичков и более широкого сообщества. В случае небольших проектов это может даже снизить нагрузку на mybinder.org посредством развёрнутой на CDN версии JupyterLite — binderlite.

    Как быстро попробовать JupyterLite

    JupyterLite можно протестировать по этой ссылке.

    Локальный запуск

    Во-первых, установите пакет CLI:

    Затем создайте веб-сайт JupyterLite и разместите его на локальном сервере:

    Документация приложения jupyterlite находится здесь.

    А поработать с JupyterLab или JupyterLite на практике вы сможете на наших курсах по Data Science, а на курсе «Machine Learning и Deep Learning» используется оборудование нашего партнёра и лидера в области вычислений для искусственного интеллекта — компании NVIDIA. Кроме того, здесь вы можете узнать, как начать карьеру или прокачаться, например, в Fullstack-разработке на Python:

    Data Science и Machine Learning

    Источник

    I’m having a few issues with Jupyter notebooks.

    First, the application seems to be «Not Trusted», and clicking «Trust» when prompted fails to do anything:

    enter image description here

    Second, the following error when trying to create a new Jupyter notebook:

    Creating Notebook Failed:
    
    The error was: Unexpected error while saving file: Desktop/Complete-Python-3-Bootcamp-master/03-Methods and Functions/Untitled.ipynb database is locked
    

    Third, if I try to load other Jupyter notebooks, I get problems. For example, trying to open 03-Function Practice Exercises.ipynb from «Python Bootcamp» in Jupyter

    enter image description here I get the following:

    Error loading notebook
    An unknown error occurred while loading this notebook. This version can load notebook formats or earlier. See the server log for details.
    

    The jupyer_mac.command terminal logs:

    [W 14:40:06.678 NotebookApp] Notebook Desktop/Complete-Python-3-Bootcamp-master/03-Methods and Functions/04-Function Practice Exercises - Solutions.ipynb is not trusted
    

    And:

    [E 14:57:45.839 NotebookApp] Uncaught exception GET /api/contents/Desktop/Complete-Python-3-Bootcamp-master/03-Methods%20and%20Functions/03-Function%20Practice%20Exercises.ipynb?type=notebook&_=1562536665698 (::1)
    HTTPServerRequest(protocol='http', host='localhost:8890', method='GET', uri='/api/contents/Desktop/Complete-Python-3-Bootcamp-master/03-Methods%20and%20Functions/03-Function%20Practice%20Exercises.ipynb?type=notebook&_=1562536665698', version='HTTP/1.1', remote_ip='::1')
    Traceback (most recent call last):
      File "/anaconda3/lib/python3.7/site-packages/tornado/web.py", line 1699, in _execute
        result = await result
      File "/anaconda3/lib/python3.7/site-packages/tornado/gen.py", line 209, in wrapper
        yielded = next(result)
      File "/anaconda3/lib/python3.7/site-packages/notebook/services/contents/handlers.py", line 112, in get
        path=path, type=type, format=format, content=content,
      File "/anaconda3/lib/python3.7/site-packages/notebook/services/contents/filemanager.py", line 433, in get
        model = self._notebook_model(path, content=content)
      File "/anaconda3/lib/python3.7/site-packages/notebook/services/contents/filemanager.py", line 392, in _notebook_model
        self.mark_trusted_cells(nb, path)
      File "/anaconda3/lib/python3.7/site-packages/notebook/services/contents/manager.py", line 503, in mark_trusted_cells
        trusted = self.notary.check_signature(nb)
      File "/anaconda3/lib/python3.7/site-packages/nbformat/sign.py", line 439, in check_signature
        return self.store.check_signature(signature, self.algorithm)
      File "/anaconda3/lib/python3.7/site-packages/nbformat/sign.py", line 239, in check_signature
        (datetime.utcnow(), algorithm, digest),
    sqlite3.OperationalError: database is locked
    [W 14:57:45.840 NotebookApp] Unhandled error
    

    This only recently started happening, and I don’t know why. It seems like both these errors (not being able to create a new notebook and not being able to open existing notebooks) is stemming from some sort of permissions issue. I should not that some notebook files from the list in the image above can be opened with no problems.

    Issue

    I was working in a jupyter notebook until it froze. It wouldn’t save or shut down so I restarted my computer. I launched jupyter notebook from an anaconda prompt, my folder directory opens per usual. When i tried to open the notebook from before, I get an error loading screen that says permission denied: (name of notebook).ipynb. I hit close and the notebook shuts down.

    I checked the folder permissions, I have full control. I can create a new ipynb without any issues. I can open other notebooks without any problem in the same folder. I tried to run a trust notebook through the anaconda prompt and it says the notebook is missing.

    I need to recover this particular notebook as it has all my work. Help! Any ideas? Thanks in advance.

    I work in the anaconda prompt in an environment other than the root, so this answer using sudo chmod doesn’t work for me.

    Solution

    I had possibly the same problem. In my case the problem was that jupyter notebook must have crashed or had some problem whilst autosaving.

    As a result, in the folder where the notebook is saved there’s a temporary file called «.~nameofnotebook.ipynb».

    This file didn’t show up in jupyter notebook, but only in the explorer. I deleted the notebook file and renamed the temporary file to delete the «.~» prefix. Make sure to save a copy of the notebook file before deleting anything in case your problem is different.

    The renamed temporary file opens fine and none of my data was lost.

    Answered By — Holzner

    Jupyter-notebook doesn’t open a web browser. It worked just fine before, then after windows 10 prompted for an update it began to open in Microsoft edge. When I tried to change it to the default browser which is chrome now it won’t open at all.

    I followed how to open Jupyter notebook in chrome on windows to try and change it back to chrome.

    When I try and run

    jupyter notebook
    

    in cmd all I get is

    [I 21:39:08.015 NotebookApp] JupyterLab extension loaded from C:UsersroyAnaconda3libsite-packagesjupyterlab
    [I 21:39:08.015 NotebookApp] JupyterLab application directory is C:UsersroyAnaconda3sharejupyterlab
    [I 21:39:08.015 NotebookApp] Serving notebooks from local directory: C:Usersroy
    [I 21:39:08.015 NotebookApp] The Jupyter Notebook is running at:
    [I 21:39:08.015 NotebookApp] http://localhost:8888/?token=d0a958999d7e59da3f097809882e8f40eb5845e3a07cebe8
    [I 21:39:08.031 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
    [W 21:39:08.109 NotebookApp] No web browser found: could not locate runnable browser.
    
        To access the notebook, open this file in a browser:
            file:///C:/Users/roy/AppData/Roaming/jupyter/runtime/nbserver-1516-open.html
        Or copy and paste one of these URLs:
            http://localhost:8888/?token=d0a958999d7e59da3f097809882e8f40eb5845e3a07cebe8
    

    However when I copy and paste the url in a web browser it just works fine.

    asked Apr 6, 2019 at 23:29

    David Odhiambo Nyerere's user avatar

    Solved it.

    I went to the
    .jupyter folder in my Users directory >
    opened the jupyter_notebook_config.py file >
    then edited this line from:

    c.NotebookApp.browser = 'C:Program Files (x86)GoogleChromeApplicationchrome.exe '
    

    to:

    c.NotebookApp.browser = u'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s'
    

    Now it works well.

    Rabinzel's user avatar

    Rabinzel

    7,6893 gold badges9 silver badges30 bronze badges

    answered Jun 9, 2019 at 9:44

    David Odhiambo Nyerere's user avatar

    1

    This solved my similar issue when jupyter is installed under my python 2.7 directory, but is not necessary under the jupyter installed in my python 3.7 directory. Readers with a 3.7 directory may be encountering a different issue.

    answered Feb 18, 2020 at 17:53

    Ryan's user avatar

    I had the same issue because by default program to open .html files was not a browser. I just had to tell my computer to always open .html files with a browser.

    answered Oct 23, 2022 at 9:27

    Luca Urbinati's user avatar

    Jupyter-notebook doesn’t open a web browser. It worked just fine before, then after windows 10 prompted for an update it began to open in Microsoft edge. When I tried to change it to the default browser which is chrome now it won’t open at all.

    I followed how to open Jupyter notebook in chrome on windows to try and change it back to chrome.

    When I try and run

    jupyter notebook
    

    in cmd all I get is

    [I 21:39:08.015 NotebookApp] JupyterLab extension loaded from C:UsersroyAnaconda3libsite-packagesjupyterlab
    [I 21:39:08.015 NotebookApp] JupyterLab application directory is C:UsersroyAnaconda3sharejupyterlab
    [I 21:39:08.015 NotebookApp] Serving notebooks from local directory: C:Usersroy
    [I 21:39:08.015 NotebookApp] The Jupyter Notebook is running at:
    [I 21:39:08.015 NotebookApp] http://localhost:8888/?token=d0a958999d7e59da3f097809882e8f40eb5845e3a07cebe8
    [I 21:39:08.031 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
    [W 21:39:08.109 NotebookApp] No web browser found: could not locate runnable browser.
    
        To access the notebook, open this file in a browser:
            file:///C:/Users/roy/AppData/Roaming/jupyter/runtime/nbserver-1516-open.html
        Or copy and paste one of these URLs:
            http://localhost:8888/?token=d0a958999d7e59da3f097809882e8f40eb5845e3a07cebe8
    

    However when I copy and paste the url in a web browser it just works fine.

    asked Apr 6, 2019 at 23:29

    David Odhiambo Nyerere's user avatar

    Solved it.

    I went to the
    .jupyter folder in my Users directory >
    opened the jupyter_notebook_config.py file >
    then edited this line from:

    c.NotebookApp.browser = 'C:Program Files (x86)GoogleChromeApplicationchrome.exe '
    

    to:

    c.NotebookApp.browser = u'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s'
    

    Now it works well.

    Rabinzel's user avatar

    Rabinzel

    7,6893 gold badges9 silver badges30 bronze badges

    answered Jun 9, 2019 at 9:44

    David Odhiambo Nyerere's user avatar

    1

    This solved my similar issue when jupyter is installed under my python 2.7 directory, but is not necessary under the jupyter installed in my python 3.7 directory. Readers with a 3.7 directory may be encountering a different issue.

    answered Feb 18, 2020 at 17:53

    Ryan's user avatar

    I had the same issue because by default program to open .html files was not a browser. I just had to tell my computer to always open .html files with a browser.

    answered Oct 23, 2022 at 9:27

    Luca Urbinati's user avatar

    I have been working on one project on my jupyter notebook for days but python stopped working for some reason. I continued working on file as I was editing some markdown cells.

    After reopening jupyter, I am not able to open that file anymore:

    Getting this error

    Other files are still opening. What are some options I can try to open this? Or is there any way I can open my ipynb file and copy the contents to another book?

    asked Aug 6, 2019 at 6:57

    k92's user avatar

    Turns out this happens when our file has .~ prefix in the file directory. Removing that prefix and renaming the file works.

    answered Aug 6, 2019 at 7:19

    k92's user avatar

    Понравилась статья? Поделить с друзьями:
  • Error loading new keyboard description
  • Error loading netc dll module mta error 126
  • Error loading netc dll module error 14001 mta
  • Error loading mysqldb module no module named mysqldb
  • Error loading module socket core