Skip to content

Commit

Permalink
Fudge the search path
Browse files Browse the repository at this point in the history
  • Loading branch information
jyio authored Jun 22, 2024
1 parent e709fb7 commit bc51eaa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions jupyter_marimo_proxy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#!/usr/bin/env python3

import os
import shutil

def setup_marimoserver():
exe = shutil.which('marimo', path=os.path.expanduser(os.path.join('~', '.local', 'bin')) + os.pathsep + os.environ.get('PATH', os.defpath)) or 'marimo'
return {
'command': [exe, 'edit', '--port', '{port}', '--base-url', '/user/' + os.environ['JUPYTERHUB_USER'] + '/marimo', '--no-token', '--headless'],
'command': ['marimo', 'edit', '--port', '{port}', '--base-url', '/user/' + os.environ['JUPYTERHUB_USER'] + '/marimo', '--no-token', '--headless'],
'environment': { 'PATH': os.path.expanduser(os.path.join('~', '.local', 'bin')) + os.pathsep + os.environ.get('PATH', os.defpath) },
'timeout': 60,
'absolute_url': True,
'launcher_entry': {
Expand Down

0 comments on commit bc51eaa

Please sign in to comment.