Skip to content

Commit

Permalink
Merge pull request #1647 from jupyterhub/betatim-patch-1
Browse files Browse the repository at this point in the history
[MRG] Remove JITSI video chat button
  • Loading branch information
minrk authored Sep 30, 2020
2 parents 0158a3f + dac3dfb commit a23b6ed
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions mybinder/files/etc/jupyter/jupyter_notebook_config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import notebook
import os
import hashlib

from distutils.version import LooseVersion as V

Expand All @@ -20,14 +19,8 @@

repo_url = os.environ.get('BINDER_REPO_URL', '')

# Roll this out only for binder-example repos to gain experience
if repo_url:
# Need a simple way to generate a stable but unique value for every repo
# that we can then use to create a Jitsi meet URL
unique = hashlib.md5(repo_url.encode()).hexdigest()
jitsi_url = 'https://meet.jit.si/mybinder.org-%s#config.startWithVideoMuted=true&config.startWithAudioMuted=true&config.prejoinPageEnabled=true' % unique
else:
jitsi_url = ''
# Disable JITSI integration for now
jitsi_url = ''

c.NotebookApp.jinja_template_vars.update({
'binder_url': binder_launch_host+binder_request,
Expand Down

0 comments on commit a23b6ed

Please sign in to comment.