Skip to content

Commit

Permalink
Inactive cells only when language not default #61
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Sep 27, 2018
1 parent 69ec8fd commit e33a91a
Show file tree
Hide file tree
Showing 4 changed files with 552 additions and 635 deletions.
3 changes: 1 addition & 2 deletions jupytext/cell_to_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ def is_code(self):
def code_to_text(self):
"""Return the text representation of a code cell"""
active = is_active(self.ext, self.metadata)
if active and self.language != (
'python' if self.ext == '.py' else 'julia'):
if active and self.language != self.default_language:
active = False
self.metadata['active'] = 'ipynb'
self.metadata['language'] = self.language
Expand Down
Loading

0 comments on commit e33a91a

Please sign in to comment.