atom-notebook: Failed to load the jupyter-notebook package
[Enter steps to reproduce:]
- …
- …
Atom: 1.47.0 x64 Electron: 5.0.13 OS: Unknown Windows version Thrown From: jupyter-notebook package 0.0.10
Stack Trace
Failed to load the jupyter-notebook package
At Cannot find module 'react'
Require stack:
- C:\Users\Administrator\.atom\packages\atom-notebook\lib\main.js
- C:\Users\Administrator\AppData\Local\atom\app-1.47.0\resources\app.asar\static\index.html
Error: Cannot find module 'react'
Require stack:
- C:\Users\Administrator\.atom\packages\atom-notebook\lib\main.js
- C:\Users\Administrator\AppData\Local\atom\app-1.47.0\resources\app.asar\static\index.html
at Module._resolveFilename (internal/modules/cjs/loader.js:683:15)
at Module._resolveFilename (~/AppData/Local/atom/app-1.47.0/resources/electron.asar/common/reset-search-paths.js:43:12)
at Function.get_Module._resolveFilename (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:155434)
at Module.require (/app.asar/static/index.js:61:43)
at require (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:146766)
at /packages/atom-notebook/lib/main.js:7:14)
at /packages/atom-notebook/lib/main.js:90:2)
at Module.get_Module._compile (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:147450)
at Object.value [as .js] (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:150998)
at Module.load (internal/modules/cjs/loader.js:701:32)
at tryModuleLoad (internal/modules/cjs/loader.js:633:12)
at Function.Module._load (internal/modules/cjs/loader.js:625:3)
at Module.require (/app.asar/static/index.js:72:46)
at require (internal/modules/cjs/helpers.js:14:16)
at customRequire (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:1:735013)
at Package.requireMainModule (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:3310163)
at ~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:3296703
at Package.measure (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:3295535)
at Package.load (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:3296276)
at PackageManager.loadAvailablePackage (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:381312)
at ~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:379735
at Config.transact (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:331800)
at PackageManager.loadPackages (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:11:379673)
at ~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:1:755624
at async Promise.all (index 0)
at AtomEnvironment.startEditorWindow (~/AppData/Local/atom/app-1.47.0/resources/app/static/<embedded>:1:757663)
Commands
Non-Core Packages
atom-ide-ui 0.13.0
jupyter-notebook 0.0.10
atom-python-run 0.9.7
data-atom 0.29.1
ide-python 1.5.0
process-palette 0.17.0
script 3.25.0
teletype 0.13.4
About this issue
- Original URL
- State: open
- Created 4 years ago
- Reactions: 11
- Comments: 22 (1 by maintainers)
@Amazeryogo ; There is a mistaken bracket in the file main.js
quote from your post;
Simply delete the one of the bracket “}” after “return el;” and save the file. Either “}” alone or “}” before “);”
So it should look like;
Hi. The owner of @atom-community here. I am interested in providing the functionality of opening ipynb files (which is I think the only missing feature) inside Hydrogen.
If @jupyter is interested, I can become a member of @jupyter and take care of the maintenance. They can also transfer it to @atom-community as another alternative.
cc: @gnestor
As I see everyone has the same problem 😃 The project README file has a section at the top
The bracket solution that I wrote above is for a temporary solution and also for an open-source fix. It’s not an official solution. Owners of this project should fix the main issue but as I see, the project is deprecated. The best thing to do is; either you fix the issue of this open-source project on your own, or use the new applications which the owners recommend.
cheers! 🚀 and stay safe 😷
I tried @yalin 's fix, and I can now open notebooks inside atom, but they are incorrectly displayed. Here’s a screenshot of what it looks like for me ( Atom v.1.49, MacOS 10.13.4):
I have the same problem using @yalin solution as well.
Hope this will get fix soon
+1 on this, after removing one of the "}'"s, I get a very similar display issue.
I too use MacOS 10.14.6
I’m getting the same error on macOS 10.14.6, running Atom version 1.46.0. Non-core packages are:
open the file in atom then edit and save it??