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

Kernel hangs with cufflinks #438

Closed
ratnesh1729 opened this issue Dec 22, 2018 · 3 comments
Closed

Kernel hangs with cufflinks #438

ratnesh1729 opened this issue Dec 22, 2018 · 3 comments

Comments

@ratnesh1729
Copy link

ratnesh1729 commented Dec 22, 2018

import pandas as pd
import cufflinks as cf
cf.go_offline()

-- If we have above imports and try to execute cell - the kernel and the whole emacs hangs. Only way to get out is to restart/kill emacs.

Let me know if we need more details. Doing above on Jupyter/browser does not hand anything and works smoothly.

Best,
Ratnesh

@dickmao
Copy link
Collaborator

dickmao commented Dec 22, 2018

I'm able to replicate the issue with the following:

import pkgutil
pkgutil.get_data('plotly', 'package_data/plotly.min.js')

min.js files are usually one massive line. EIN suffers the same performance issues as emacs when it comes to long lines. I'm afraid you'll need to go back to the web client, which is just as well since plotly and cufflinks appear at first glance to be very javascript-centric, and EIN is anathema to web languages.

@millejoh
Copy link
Owner

Cufflinks is something of a wrapper around pandas and plotly. Plotly displays its graphs in the browser-based jupyter client using javascript, something which Emacs just simply does not grok. Something like skewer might work, but I just haven't had the time this past year to look much into implementing this support. I think a user did have some partial success - you might want to look at issue #65.

@dickmao
Copy link
Collaborator

dickmao commented Feb 1, 2020

Will only think about this if webkit integrates with emacs (unlikely).

@dickmao dickmao closed this as completed Feb 1, 2020
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