jupyter / jupyter/atom-notebook

Failed to load jupyter-notebook, Linux Mint 19

Open
#97 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
301
Forks
48
PR merge metrics
No merged PRs in 30d

Description

Hello,
I have this error when I try to load jupyter-notebook in Atom :

**Atom**: 1.40.1 x64
**Electron**: 3.1.10
**OS**: Linux Mint
**Thrown From**: [jupyter-notebook](https://github.com/jupyter/atom-notebook) package 0.0.10

### Stack Trace

Failed to load the jupyter-notebook package

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

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

deactivate() {
at Parser.pp.raise (/app.asar/node_modules/babylon/lib/parser/location.js:24:13)
at Parser.pp.unexpected (/app.asar/node_modules/babylon/lib/parser/util.js:82:8)
at Parser.pp.expect (/app.asar/node_modules/babylon/lib/parser/util.js:76:33)
at Parser.pp.parseExprList (/app.asar/node_modules/babylon/lib/parser/expression.js:785:12)
at Parser.pp.parseSubscripts (/app.asar/node_modules/babylon/lib/parser/expression.js:270:29)
at Parser.pp.parseExprSubscripts (/app.asar/node_modules/babylon/lib/parser/expression.js:240:17)
at Parser.pp.parseMaybeUnary (/app.asar/node_modules/babylon/lib/parser/expression.js:217:19)
at Parser.pp.parseExprOps (/app.asar/node_modules/babylon/lib/parser/expression.js:163:19)
at Parser.pp.parseMaybeConditional (/app.asar/node_modules/babylon/lib/parser/expression.js:145:19)
at Parser.pp.parseMaybeAssign (/app.asar/node_modules/babylon/lib/parser/expression.js:112:19)
at Parser.pp.parseExpression (/app.asar/node_modules/babylon/lib/parser/expression.js:79:19)
at Parser.pp.parseStatement (/app.asar/node_modules/babylon/lib/parser/statement.js:137:23)
at Parser.parseStatement (/app.asar/node_modules/babylon/lib/plugins/flow.js:655:22)
at Parser.pp.parseBlock (/app.asar/node_modules/babylon/lib/parser/statement.js:442:21)
at Parser.pp.parseFunctionBody (/app.asar/node_modules/babylon/lib/parser/expression.js:747:22)
at Parser.parseFunctionBody (/app.asar/node_modules/babylon/lib/plugins/flow.js:643:20)
at Parser.pp.parseMethod (/app.asar/node_modules/babylon/lib/parser/expression.js:717:8)
at Parser.pp.parseObjPropValue (/app.asar/node_modules/babylon/lib/parser/expression.js:658:23)
at Parser.parseObjPropValue (/app.asar/node_modules/babylon/lib/plugins/flow.js:891:13)
at Parser.pp.parseObj (/app.asar/node_modules/babylon/lib/parser/expression.js:640:10)
at Parser.pp.parseExprAtom (/app.asar/node_modules/babylon/lib/parser/expression.js:392:19)
at Parser.parseExprAtom (/app.asar/node_modules/babylon/lib/plugins/jsx/index.js:412:22)
at Parser.pp.parseExprSubscripts (/app.asar/node_modules/babylon/lib/parser/expression.js:236:19)
at Parser.pp.parseMaybeUnary (/app.asar/node_modules/babylon/lib/parser/expression.js:217:19)
at Parser.pp.parseExprOps (/app.asar/node_modules/babylon/lib/parser/expression.js:163:19)
at Parser.pp.parseMaybeConditional (/app.asar/node_modules/babylon/lib/parser/expression.js:145:19)
at Parser.pp.parseMaybeAssign (/app.asar/node_modules/babylon/lib/parser/expression.js:112:19)
at Parser.pp.parseExport (/app.asar/node_modules/babylon/lib/parser/statement.js:682:21)
at Parser.parseExport (/app.asar/node_modules/babylon/lib/plugins/flow.js:713:20)
at Parser.pp.parseStatement (/app.asar/node_modules/babylon/lib/parser/statement.js:115:90)
```

### Commands

```
-4:25.3.0 hydrogen:connect-to-remote-kernel (input.hidden-input)
-4:08.0 hydrogen:run-all (input.hidden-input)
```

### Non-Core Packages

```
atom-ide-ui 0.13.0
busy-signal 2.0.1
Hydrogen 2.14.0
ide-scala 0.11.0
intentions 1.1.5
jupyter-notebook 0.0.10
language-assembly 0.7.2
language-ocaml 1.9.5
language-scala 1.1.10
linter 2.3.1
linter-ui-default 1.8.1
monokai 0.24.0
ocaml-indent 0.7.1
ocaml-merlin 0.14.7
```

Can anyone help me, please?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with lib/main.js around line 36 and reproduce the package-loading failure using the reported Atom 1.40.1 environment. Compare the syntax at the reported location with what Atom accepts, then verify that the jupyter-notebook package loads without the parser error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, jupyter-notebook
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.