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

Reduce connecting time #26

Open
CyanBrain opened this issue Apr 18, 2020 · 4 comments
Open

Reduce connecting time #26

CyanBrain opened this issue Apr 18, 2020 · 4 comments

Comments

@CyanBrain
Copy link

Hi ines,

First, I want to say thank you. I really love your template.

Second, there is an issue in juniper and I think it will be better for students if you can solve it.
Currently connecting to mybinder.org take time. I mean "Launching Docker container on mybinder.org..." take from 20sec to 60sec then "Loading..." take about 2sec. This is annoying for students and consume time.
For me, it will be much better if "Launching Docker container on mybinder.org..." start when the student clicks inside "input" space then when students click run "Loading..." start.
So when students trying to solve the exercise, connecting to mybinder.org done then the students when click run button it will take only less than 2sec to execute the code.
Also, this feature exists in most of the online code editors because it saves a lot of time.

Thanks.

@ines
Copy link
Owner

ines commented Apr 30, 2020

Thanks! Launching the Docker container should only have to happen once – after that, the existing kernel connection should be used.

You could probably add the feature you want by listening for the CodeMirror text area focus event and then already setting this.state.kernel if it doesn't yet exist.

However, I'm reluctant to make this the default, as Binder is a free service and I want to make sure to keep the launches to a minimum and not cause unnecessary load on their servers. This might mean that a user has to wait for 20 to 60 seconds on the first load, but I think that's an okay compromise. Of course, if you're hosting your own BinderHub or Jupyter server, that's very different 🙂

@CyanBrain
Copy link
Author

Thank you for your response

I launched my JupyterHub on google cloud and I got a DNS something like this 01.02.03.04.

How to make juniper.js connected to 01.02.03.04 instead of mybinder.org?

Thanks in advance.

@mathematicalmichael
Copy link

mathematicalmichael commented May 9, 2020

Thank you for your response

I launched my JupyterHub on google cloud and I got a DNS something like this 01.02.03.04.

How to make juniper.js connected to 01.02.03.04 instead of mybinder.org?

Thanks in advance.

sed 's/mybinder.org/01.02.03.04/'?

@CyanBrain
Copy link
Author

Thank you so much Mr. @mathematicalmichael

But where I have to write this line of code?

sed 's/mybinder.org/01.02.03.04/'?

in which file? in which line? do I need to edit anything else?

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