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

visualize not working when remotely accessing notebook #87

Closed
drpventura opened this issue Feb 13, 2020 · 3 comments
Closed

visualize not working when remotely accessing notebook #87

drpventura opened this issue Feb 13, 2020 · 3 comments
Assignees

Comments

@drpventura
Copy link

I am trying to determine if visualize only works through Jupyter when you are using a browser from the local machine.

I am trying to setup an instance in Google Cloud of CourseAnalytics with Julia and Jupyter running. However, whenever I try to run the visualize command it spins for a while and then produces a gray box saying "localhost refused to connect" (see screenshot below).
no-viz

I also tried setting up in an Ubuntu guest in VirtualBox. When I try to connect from within the Ubuntu instance (to itself) visualize works. However, when I try to connect to the Ubuntu (host) server from my Windows (guest), I get the same message as above about not being able to connect. Is this by design or is it an error? Note: I have run using WebIO and ``WebIO.install_jupyter_nbextension()` before running notebook.

@haydenfree haydenfree self-assigned this Feb 15, 2020
@haydenfree
Copy link
Member

Hi Dr. Ventura, we've been working to make the Jupyter Notebook experience more reliable but I don't think we've come across this bug before. I've previously set up Jupyter running on an Amazon EC2 instance and visualized plans without problem, but it's possible something has broken since then.

Jiacheng has been focused on the Jupyter side of things so I am going to include him on this issue.

@jiachengzhang1 Have you run into this issue? Any ideas on what may be causing it?

@jiachengzhang1
Copy link
Contributor

jiachengzhang1 commented Feb 15, 2020

Yeah, this is because there's no a server for port 8156 set up to render the embedded visualization html page to notebook when using cloud server.

you could resolve it by setting the url from this

local_embed_url = string("http://localhost:", LOCAL_EMBED_PORT)

to the src url from the template.
<iframe id="curriculum" src="http://curricula-api-embed.damoursystems.com/"></iframe>

You may go to the Julia package directory to change the url for testing(If you install Julia for an user, on ec2 is /home/<user>/.julia/packages/CurricularAnalytics/<some string>/src/Visualization.jl. Haven't tried on Google Cloud yet, but it should be similar)

@haydenfree Do you think if we need to change the embedded url in the repo?

@drpventura
Copy link
Author

That fixed it. Thanks!

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