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

Error converting cells with R magic and metadata #114

Closed
capelastegui opened this issue Oct 25, 2018 · 2 comments
Closed

Error converting cells with R magic and metadata #114

capelastegui opened this issue Oct 25, 2018 · 2 comments

Comments

@capelastegui
Copy link

Some of my notebooks have cells with the following metadata:

"metadata": {
    "active": "ipynb"
   }

I think this was added automatically after migrating from an older version of jupytext, but I'm not sure of the details. The problem is, when I add the %%R magic to one of these cells and convert the notebook to a .py file, the new magic is ignored.

This can be fixed manually by copying the cell text to a new cell and deleting the original one, so it's not a huge problem.

An example notebook is attached - added the .txt extension because github won't accept .ipynb files.
Notebook - R cells with metadata.ipynb.txt

@mwouts
Copy link
Owner

mwouts commented Oct 25, 2018

Hello @capelastegui , thanks for reporting. Indeed the automatic addition of "active" metadata does not seem to work well for notebooks with multiple languages when those are exported as scripts. I think the notebook you provided for #111 also shows the issue. When time permits I will provide a fix for this.

@mwouts
Copy link
Owner

mwouts commented Oct 29, 2018

Fixed in v0.8.4

@mwouts mwouts closed this as completed Oct 29, 2018
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