Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Feature: JupyterLab plugin #459

Merged
merged 8 commits into from
Mar 29, 2018
Merged

Feature: JupyterLab plugin #459

merged 8 commits into from
Mar 29, 2018

Conversation

paselem
Copy link
Contributor

@paselem paselem commented Mar 26, 2018

  • Include Jupyter Lab as a shipped plugin
  • Add some more verbosity to logs
  • Write a MASTER sentinel file to disk to know where master is

path = os.environ['PWD'] + '/MASTER'
print('Writing master file to: {}'.format(path))
f = open(path, 'w')
f.write(master_node.ip_address)
Copy link
Member

@jafreck jafreck Mar 27, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already done here:

master_file.write("{0}\n".format(master_node.ip_address))

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

@@ -0,0 +1,57 @@
#!/bin/bash

# This custom script only works on images where jupyter is pre-installed on the Docker image
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should change all of the plugins to be self-contained. Not sure that should be done in this PR, but we will have to change it soon anyways.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, although this is no longer true since I'm install jupyter lab from conda. I copied the file over so that comment was unnecessary.

}
EOF

# start jupyter notebook from /mnt - this is where we recommend you put your azure files mount point as well
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does jupyterlab have the same restriction as jupyter where you can't navigate up the directory structure? Right now /mnt is cluttered with a lot of things, it would be nice to have jupyterlab's default directory point somewhere else.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same limitation - you cannot navigate 'up' from /mnt. Since this is where we place samples it seems like a reasonable place to put it - where else do you think it could work?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No that's fine, /mnt/ is the best place since that is where their azure files will be mounted,

@jafreck jafreck changed the title Ship Jupyter Lab plugin Feature: JupyterLab plugin Mar 27, 2018
@jafreck jafreck added this to the v0.7.0 milestone Mar 27, 2018
class JupyterLabPlugin(PluginConfiguration):
def __init__(self):
super().__init__(
name="jupyter_lab",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry to be super pedantic, but I think this might be better as jupyterlab since they brand it as one word. I think we should also make plugins case insensitive (not in this pr, just in general).

@paselem paselem merged commit da61337 into master Mar 29, 2018
@paselem paselem deleted the feature/jupyterlab branch March 29, 2018 16:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants