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

Using snakeviz on a jupyterhub installation #146

Open
bsimpson53 opened this issue Jun 15, 2020 · 3 comments
Open

Using snakeviz on a jupyterhub installation #146

bsimpson53 opened this issue Jun 15, 2020 · 3 comments

Comments

@bsimpson53
Copy link

Hi,

I recently stumbled across snakeviz, and I found it really helpful and noticed the notebook magics, it seems to be really suitable for jupyter and works with a local jupyter install but not on jupyterhub.

I'm intending to use it on a jupyterhub installation and I think I can get it to work using:

...and provide some extra options to snakeviz:

  • --url_basepath=< url basepath to server for the proxying >
  • --fs_basepath=< filesystem basepath to write files to and whitelist Alternate root directory #62 >

I have noticed that there's a problem with the server in that it allows you to export any file on the file-system #62

The other approach (possibly better but more time consuming) would be to write a jupterlab extension and jupyter server extension, but then they would need to be maintained.

I'm happy to contribute back these changes (they might be a bit "rough and ready") but before I do this, has anybody tried to get it to work jupyterhub already and have a better approach (perhaps I've missed a simpler solution)?

@bsimpson53
Copy link
Author

bsimpson53 commented Jun 25, 2020

Saw there's a rejected pull request relating to #62 => #136

@rcthomas
Copy link

@bsimpson53 Did you end up giving this a try?

@bsimpson53
Copy link
Author

@rcthomas got side tracked, other things took priority, I still think it's worthwhile though and it's on my list

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

2 participants