Skip to content

Specify jupyterlab --notebook-dir before lauch #561

Open
@fmaussion

Description

@fmaussion

Issue moved from jupyterhub/binderhub#764

I'd like jupyterlab to have its "home" in a folder within the repository, not at the repository root. It will make a nicer user experience if all the repository config files aren't available in the jupterlab directory tree.

Note that starting from a specific notebook within the repository already makes it much nicer by starting at the right place in the directory tree, but I'd like users not to even be able to see or access the repository root folder.

I've tried to tweak the start script as @jhamman suggests but it doesn't work as I'm not sure what command exactly is triggered by repo2docker when an url with lab is given.

I also tried the following in the start script, without success:

#!/bin/bash

jupyter() { command "jupyter $@ --notebook-dir ./notebooks"; }

exec "$@"

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions