Closed aechase closed 8 years ago
If you write require('<path-to-sources>/atom-notebook/lib/main.js')
in Atom devtools console, it gives the location of error:
atom-notebook/node_modules/jupyter-js-services/node_modules/jupyter-js-utils/lib/dialog.css:6
It is probably related to: https://github.com/jupyter/jupyter-js-utils/blob/master/src/dialog.ts#L8
Opened an issue at https://github.com/jupyter/jupyter-js-utils/issues/20
Right, all of the jupyter-js-* repos assume the ability to require()
a css file by name, which is provided by loaders such as Webpack and SystemJS, I'll update the readme to reflect this.
Interesting... I'm not running into this problem but @maxxk is. We're obviously not running Webpack or SystemJS in atom-notebook, we're simply importing/requiring jupyter-js-services (https://github.com/jupyter/atom-notebook/blob/f185c49f646f15db2371e4307ac493c232c85d12/lib/notebook-editor.js#L12). Any ideas??
Jupyter-js-services relies on jupyter-js-utils, which as a require()
d css file, dialog.css
.
I think this may warrant splitting utils into those requiring css and those not requiring it, so that jupyter-js-services can continue to be used in a node context.
Agreed. Let me know if you need my assistance 👍
@jasongrout, shall we make another repo called something like jupyter-js-graphical-utils
or jupyter-js-visual-utils
?
@minrk, same question ^^
@blink1073 for things like the dialogs? I suppose so, since they are used by multiple applications. I might say gui-utils
.
Yep, anything that requires the DOM or css, gui-utils
sounds good.
We just made https://github.com/jupyter/jupyter-js-domutils. @blink1073 - you have permission to push to it.
Should be fixed by depending on "jupyter-js-utils": "^0.4.0"
.
Great! @blink1073 atom-notebook depends on jupyter-js-services, so would you like to me to submit a PR of jupyter-js-services that depends on this new version of jupyter-js-utils? Or would you like to do it?
Oh, sorry, that should say "jupyter-js-services": "^0.4.0"
, which already depends on the updated js-utils
.
👌
@aechase @maxxk https://github.com/jupyter/atom-notebook/commit/ee702cecd93f65f6e326978f8e8eaff2bc1a0155 should fix this. Either update jupyter-notebook to 0.0.9 inside of Atom or clone the current repo. Let me know if this solves it...
@gnestor Solved! I can now install and load using PYTHON=python2.7 apm install jupyter-notebook
. Thanks for the quick work, everyone.
👍
PYTHON=python2.7 apm install jupyter-notebook
(that is, downloading the package and not using the cloned repo). I still get the same error.Atom Version: 1.4.0 System: Mac OS X 10.11.2 Thrown From: jupyter-notebook package, v0.0.8
Stack Trace
Failed to load the jupyter-notebook package
Commands
Config
Installed Packages