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

A JupyterLab plugin to edit Notebook Metadata #166

Closed
hwasiti opened this issue Jan 30, 2019 · 8 comments
Closed

A JupyterLab plugin to edit Notebook Metadata #166

hwasiti opened this issue Jan 30, 2019 · 8 comments

Comments

@hwasiti
Copy link

hwasiti commented Jan 30, 2019

Hey Marc,

Look at this JupyterLab extension:
jupyterlab-nbmetadata

@mwouts
Copy link
Owner

mwouts commented Jan 30, 2019

Hello @hwasiti , well actually I saw it yesterday. Do you think we should add a mention of that extension in the README? Please feel free to submit a PR for that (on branch 1.0.0).

Also, we have plans to write Jupyter Lab and Jupyter notebooks extensions to ease the pairing of notebooks at #86, and sure, the nbmetadata extension could give some hints on how to do that.

@danieltomasz
Copy link

danieltomasz commented Jan 30, 2019

There is an error when someone is trying to install this extension 'jupyterlab_nbmetadata' is not in the npm registry.

@hwasiti
Copy link
Author

hwasiti commented Jan 31, 2019

Yeah it didn't work for me at first but then tried the other method : cloning the repo and compiling /install. It worked and seems useful.. I am on Ubuntu 18.04. I believe this will come eventually to jupyter lab. I noticed that editing meta data of cells has been added to jupyter lab recently, so seems this one will be added soon (hopefully)

It is up to you.. If you are interested I will do a PR request.

Thanks for the great work.. Jupytext is truly unique and addresses something we wanted badly from a long time....

@mwouts
Copy link
Owner

mwouts commented Jan 31, 2019

Thanks @hwasiti , this is very kind.

Regarding your suggestion, I propose to keep the link to jupyterlab/jupyterlab#1308, and replace the 'not yet' in the README with a mention that the metadata editor is on its way. People who open the link will find @yuvipanda's extension there.

@hwasiti
Copy link
Author

hwasiti commented Jan 31, 2019

PR Done!

I found another issue regarding specifying percent format. Please check this change also in the Readme file PR.

@yuvipanda
Copy link
Contributor

Glad you found it useful! I just published the package on npm - hopefully the suggested install method works now.

@mwouts
Copy link
Owner

mwouts commented Jan 31, 2019

Thanks @yuvipanda .

I could install the extension with just one command jupyter labextension install jupyterlab_nbmetadata, followed by a restart. The extension works well.

One detail: at first I did not see the checkbox (top right of the editor), and was surprized not to get my metadata saved... Do you think you could sync the metadata when the user saves a notebook?

image

mwouts added a commit that referenced this issue Feb 13, 2019
@mwouts
Copy link
Owner

mwouts commented Feb 13, 2019

@hwasiti, pairing Jupyter notebooks will become easier in Version 1.0 !

I have edited the README to include instructions/ screenshots of the Jupyter notebook and lab extensions for Jupytext. These extensions should make the pairing of notebooks intuitive. And, unless the user wants a very specific pairing, he won't need to edit the metadata anymore.

I have also included a link to @yuvipanda 's extension, because I think it will be useful to advanced users.

If you don't mind I will close this issue. I think I only have #176 left before I can release version 1.0 - if you want to test the extensions before that, give a try to

pip install -i https://test.pypi.org/simple/ jupytext

(follow instructions in the README on how to get the extensions working).

@mwouts mwouts closed this as completed Feb 13, 2019
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

4 participants