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

Lightning-histogram not working on python kernel in Jupyterhub #42

Open
Lxmnkmr opened this issue Jul 6, 2016 · 5 comments
Open

Lightning-histogram not working on python kernel in Jupyterhub #42

Lxmnkmr opened this issue Jul 6, 2016 · 5 comments

Comments

@Lxmnkmr
Copy link

Lxmnkmr commented Jul 6, 2016

I have installed lightning-python to work on different visualizations using my python kernel in Jupyterhub. I then tried the sample python codes for different visulisations available on 'http://lightning-viz.org/visualizations'. All the visualizations work well but only the histogram sample code gives me error:

values = random.randn(100)
Lightning.histogram(values)

Below is the error I get:

Javascript error adding output!
Error: Module name "lightning-histogram" has not been loaded yet for context: _. Use require([]) http://requirejs.org/docs/errors.html#notloaded
See your browser Javascript console for more details

I tried installing the lightning-histogram package available seperately, but it still gives me same error!
When I Iooked in http://requirejs.org/docs/errors.html#notloaded as per the suggestion in error, I found that few changes had to be made in javascript code to avoid this error and I tried changing the same in index.js, histogram.js files, but still no luck.

@mathisonian
Copy link
Member

hey @Lxmnkmr are you using the python client in standalone mode (without a server running)?

@Lxmnkmr
Copy link
Author

Lxmnkmr commented Jul 6, 2016

@mathisonian Yes I'm using it in standalone mode.

@mathisonian
Copy link
Member

I think we must have added that since the last release of the standalone version. I'll rebuild the javascript package with that included

@Lxmnkmr
Copy link
Author

Lxmnkmr commented Jul 6, 2016

@mathisonian Thank you!!

@griffero
Copy link

@Lxmnkmr I am having the same issue that you described. Did you find any solution?

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

3 participants