Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Failed to load the jupyter-notebook package" on Atom 1.18 #67

Closed
mkals opened this issue Jun 22, 2017 · 71 comments
Closed

"Failed to load the jupyter-notebook package" on Atom 1.18 #67

mkals opened this issue Jun 22, 2017 · 71 comments

Comments

@mkals
Copy link

mkals commented Jun 22, 2017

Hello,

I get this same error message, both when installing directly through GitHub as described here and when going through the plugin manager.

Is there a trick I could do to make it work? Any help would be greatly appreciated!

Atom: 1.18.0 x64
Electron: 1.3.15
OS: Mac OS X 10.12.6
Thrown From: jupyter-notebook package 0.0.10

Stack Trace

Failed to load the jupyter-notebook package

At /Users/mKals/.atom/packages/jupyter-notebook/lib/main.js: Unexpected token (36:4)

SyntaxError: /Users/mKals/.atom/packages/jupyter-notebook/lib/main.js: Unexpected token (36:4)
        return el;
      }
    });
  },

  deactivate() {
    at Parser.pp.raise (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/parser/location.js:24:13)
    at Parser.pp.unexpected (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/parser/util.js:82:8)
    at Parser.pp.expect (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/parser/util.js:76:33)
    at Parser.pp.parseExprList (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/parser/expression.js:785:12)
    at Parser.pp.parseSubscripts (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/parser/expression.js:270:29)
    at Parser.pp.parseExprSubscripts (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/parser/expression.js:240:17)
    at Parser.pp.parseMaybeUnary (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/parser/expression.js:217:19)
    at Parser.pp.parseExprOps (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/parser/expression.js:163:19)
    at Parser.pp.parseMaybeConditional (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/parser/expression.js:145:19)
    at Parser.pp.parseMaybeAssign (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/parser/expression.js:112:19)
    at Parser.pp.parseExpression (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/parser/expression.js:79:19)
    at Parser.pp.parseStatement (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/parser/statement.js:137:23)
    at Parser.parseStatement (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/plugins/flow.js:655:22)
    at Parser.pp.parseBlock (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/parser/statement.js:442:21)
    at Parser.pp.parseFunctionBody (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/parser/expression.js:747:22)
    at Parser.parseFunctionBody (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/plugins/flow.js:643:20)
    at Parser.pp.parseMethod (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/parser/expression.js:717:8)
    at Parser.pp.parseObjPropValue (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/parser/expression.js:658:23)
    at Parser.parseObjPropValue (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/plugins/flow.js:891:13)
    at Parser.pp.parseObj (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/parser/expression.js:640:10)
    at Parser.pp.parseExprAtom (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/parser/expression.js:392:19)
    at Parser.parseExprAtom (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/plugins/jsx/index.js:412:22)
    at Parser.pp.parseExprSubscripts (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/parser/expression.js:236:19)
    at Parser.pp.parseMaybeUnary (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/parser/expression.js:217:19)
    at Parser.pp.parseExprOps (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/parser/expression.js:163:19)
    at Parser.pp.parseMaybeConditional (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/parser/expression.js:145:19)
    at Parser.pp.parseMaybeAssign (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/parser/expression.js:112:19)
    at Parser.pp.parseExport (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/parser/statement.js:682:21)
    at Parser.parseExport (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/plugins/flow.js:713:20)
    at Parser.pp.parseStatement (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/parser/statement.js:115:90)
    at Parser.parseStatement (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/plugins/flow.js:655:22)
    at Parser.pp.parseTopLevel (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/parser/statement.js:30:21)
    at Parser.parse (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/parser/index.js:70:17)
    at Object.parse (/Applications/Atom.app/Contents/Resources/app/node_modules/babylon/lib/index.js:45:50)
    at Object.exports.default (/Applications/Atom.app/Contents/Resources/app/node_modules/babel-core/lib/helpers/parse.js:36:18)
    at File.parse (/Applications/Atom.app/Contents/Resources/app/node_modules/babel-core/lib/transformation/file/index.js:574:40)
    at File.parseCode (/Applications/Atom.app/Contents/Resources/app/node_modules/babel-core/lib/transformation/file/index.js:691:20)
    at /Applications/Atom.app/Contents/Resources/app/node_modules/babel-core/lib/transformation/pipeline.js:167:12
    at File.wrap (/Applications/Atom.app/Contents/Resources/app/node_modules/babel-core/lib/transformation/file/index.js:639:16)
    at Pipeline.transform (/Applications/Atom.app/Contents/Resources/app/node_modules/babel-core/lib/transformation/pipeline.js:165:17)
    at Object.exports.compile (/Applications/Atom.app/Contents/Resources/app/src/babel.js:70:22)
    at Object.compile (/Applications/Atom.app/Contents/Resources/app/src/package-transpilation-registry.js:79:33)
    at compileFileAtPath (/Applications/Atom.app/Contents/Resources/app/src/compile-cache.js:97:37)
    at Object.value [as .js] (/Applications/Atom.app/Contents/Resources/app/src/compile-cache.js:238:26)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
    at Module.require (Applications/Atom.app/Contents/Resources/app/static/index.js:47:45)
    at require (internal/module.js:20:19)
    at customRequire (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:96:26)
    at Package.module.exports.Package.requireMainModule (/Applications/Atom.app/Contents/Resources/app/src/package.js:887:35)
    at /Applications/Atom.app/Contents/Resources/app/src/package.js:158:34
    at Package.module.exports.Package.measure (/Applications/Atom.app/Contents/Resources/app/src/package.js:99:21)
    at Package.module.exports.Package.load (/Applications/Atom.app/Contents/Resources/app/src/package.js:144:18)
    at PackageManager.module.exports.PackageManager.loadAvailablePackage (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:565:22)
    at PackageManager.module.exports.PackageManager.loadPackage (/Applications/Atom.app/Contents/Resources/app/src/package-manager.js:495:27)
    at /Applications/Atom.app/Contents/Resources/app/node_modules/settings-view/lib/package-manager.js:521:35
    at exit (/Applications/Atom.app/Contents/Resources/app/node_modules/settings-view/lib/package-manager.js:128:22)
    at triggerExitCallback (/Applications/Atom.app/Contents/Resources/app/src/buffered-process.js:338:17)
    at /Applications/Atom.app/Contents/Resources/app/src/buffered-process.js:351:17
    at Socket.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/buffered-process.js:220:15)
    at emitOne (events.js:101:20)
    at Socket.emit (events.js:188:7)
    at Pipe._handle.close [as _onclose] (net.js:493:12)

Commands

     -2:04.7.0 settings-view:check-for-package-updates (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-xcode-theme.theme-atom-light-ui)
     -1:40.2.0 core:confirm (input.hidden-input)

Non-Core Packages

atom-beautify 0.30.3 
autocomplete-clang 0.11.3 
busy-signal 1.4.3 
cpp-generator 0.1.0 
ex-mode 0.15.0 
Hydrogen 1.18.0 
intentions 1.1.2 
jupyter-notebook 0.0.10 
linter 2.2.0 
linter-clang 4.1.1 
linter-ui-default 1.6.2 
markdown-preview-plus 2.4.9 
vim-mode-plus 0.93.0 
xcode-theme 1.4.0 
@gautam1858
Copy link

Me too

@nsalerni
Copy link

nsalerni commented Jul 1, 2017

Same here.

@DostalJ
Copy link

DostalJ commented Jul 2, 2017

Me too

@xingfanxia
Copy link

same

1 similar comment
@nasyxx
Copy link

nasyxx commented Jul 6, 2017

same

@louismartin
Copy link

Up, same, me too

@maricar-m
Copy link

same

@vlaskinvlad
Copy link

+1

3 similar comments
@richtrf
Copy link

richtrf commented Jul 11, 2017

+1

@nicholasbutlin
Copy link

+1

@rafa2000
Copy link

+1

@wikp
Copy link

wikp commented Jul 17, 2017

Bump

@ghost
Copy link

ghost commented Jul 20, 2017

+1

2 similar comments
@alonsomoya
Copy link

+1

@DataUrbanEconGeek
Copy link

+1

@dalegebit
Copy link

+2

@dalegebit
Copy link

dalegebit commented Jul 26, 2017

Oh, simply remove the '}' at that line can get rid of the exception, but after doing so the layout gets really ugly

@salehmoe
Copy link

How to remove the '}'

@maxhodak
Copy link

maxhodak commented Aug 7, 2017

Any update?

@tdrobbin
Copy link

+1

1 similar comment
@mallen5311
Copy link

+1

@alisianoi
Copy link

bumpy bump

@valmormn
Copy link

wtf?!?

@rlbc
Copy link

rlbc commented Aug 27, 2017

+1

5 similar comments
@adkinsty
Copy link

adkinsty commented Sep 2, 2017

+1

@marskar
Copy link

marskar commented Sep 2, 2017

+1

@moonbury
Copy link

moonbury commented Sep 5, 2017

+1

@anandharidass
Copy link

+1

@kibernick
Copy link

+1

@yoonoh930
Copy link

+1

1 similar comment
@burkesquires
Copy link

+1

@jaredtconnor
Copy link

+1 to getting this same issue. I do believe the package is lacking maintainers though, so we might be out of luck.

If anyone is still looking for a jupyter like development environment, check out Hydrogen. It's a great way in Atom to run snippets scripts and print graphs, results, tables, etc.

gnestor added a commit that referenced this issue Jan 18, 2018
Removed curly brace causing syntax error to fix #67
@dvictori
Copy link

After this change, the plugging loads fine but now the layout of the notebook is all messed up. Anyone having the same issue?

@DannyDannyDanny
Copy link

+1

@michalskop
Copy link

After applying 3fa010f, the *.ipynb files did not open in Atom at all in my case.

@inyutin
Copy link

inyutin commented Feb 25, 2018

+1

@r3dang
Copy link

r3dang commented Mar 11, 2018

layout is ruined :(

@gnestor
Copy link
Contributor

gnestor commented Mar 11, 2018

FYI, this project is deprecated:

This project does not have any active maintainers. We recommend that you use nteract, a native notebook application built using Electron, React (like this project), Redux, and RxJS, or Hydrogen, a LightTable-inspired package for Atom that allows users to run code blocks and selections using Jupyter kernels.

If anyone would like to become maintainer of this repo, let me know and I'll spend some time introducing you to the codebase.

@sushinoya
Copy link

@gnestor I would not mind. why did the maintainers decide to let it go though?

@DraceniY
Copy link

DraceniY commented Apr 3, 2018

+1

@gnestor
Copy link
Contributor

gnestor commented Apr 3, 2018

Well I was the only one maintaining it and then I got contracted to work on Jupyter Notebook and JupyterLab, both of which the org has grants for. Unfortunately, no one is funding atom-notebook development at the moment. I was really excited about it at the time, but since then, hydrogen (use Jupyter backend to evaluate code inline in Atom), nteract (native Jupyter notebook app using Electron), JupyterLab Native (native JupyterLab app using Electron), and JupyterLab (the next-generation Jupyter client) have emerged. I would give hydrogen and good look before diving into this because it's built on strong foundations and it fits really well into the Atom workflow.

@sushinoya
Copy link

I'll definitely look into Hydrogen :) @gnestor is there a way to be using Atom shortcuts in JupyterLab?

@gnestor
Copy link
Contributor

gnestor commented Apr 4, 2018

There are currently vim, emac, and Sublime Text keymap bindings in JupyterLab:

image

@flios
Copy link

flios commented Apr 10, 2018

+1

@MesiA
Copy link

MesiA commented Jun 3, 2018

is it rude to say "Me too" ?!

@Dooori
Copy link

Dooori commented Jun 11, 2018

same issue here

@phaabe
Copy link

phaabe commented Nov 22, 2018

wow! me too. Seems like this project is dead :/

@gnestor
Copy link
Contributor

gnestor commented Nov 22, 2018

Ya, dead until we can find a maintainer. Check out Hydrogen!

@laurentperrinet
Copy link

is it rude to say "Me too" ?!

#MeToo

@brandonsimpson21
Copy link

error still exists, atom says "issue reported" and links here after failure

@SamDingore
Copy link

There is a extra } in the main .js file
Simply open file : /home/.atom/packages/jupyter-notebook/lib/main.js
inside main.js on line 36: }); Replace this with )}, and On line 37 or 38 there is a }, remove it
Save the file
restart Atom

@F1nalFortune
Copy link

F1nalFortune commented Aug 5, 2022

There is a extra } in the main .js file Simply open file : /home/.atom/packages/jupyter-notebook/lib/main.js inside main.js on line 36: }); Replace this with )}, and On line 37 or 38 there is a }, remove it Save the file restart Atom

Windows path for me was C:\Users\<username>\.atom\packages\jupyter-notebook\lib\main.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests