This repository has been archived by the owner on Apr 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from mwouts/v0.4.3
V0.4.3
- Loading branch information
Showing
10 changed files
with
115 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
"""Jupyter notebooks as python or R script | ||
Use this module to read or write Jupyter notebooks as R or python scripts | ||
(methods 'read', 'reads', 'write', 'writes') | ||
Use the 'nbsrc' conversion script to convert Jupyter notebooks from/to | ||
R or Python scripts | ||
NB: read, write methods, as well as ContentsManager, are to be found in the | ||
nbrmd package | ||
""" | ||
|
||
from .nbsrc import readme | ||
|
||
try: | ||
from .srcexporter import PyNotebookExporter | ||
from .srcexporter import RNotebookExporter | ||
except ImportError as e: | ||
PyNotebookExporter = str(e) | ||
RNotebookExporter = str(e) | ||
except ImportError as error: | ||
PyNotebookExporter = str(error) | ||
RNotebookExporter = str(error) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
"""Methods for the nbsrc package. Note that methods for notebooks are | ||
found in the nbrmd package""" | ||
|
||
import os | ||
|
||
|
||
def readme(): | ||
""" | ||
Contents of README.md | ||
:return: | ||
""" | ||
"""Contents of README.md""" | ||
readme_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), | ||
'..', 'README.md') | ||
with open(readme_path) as fh: | ||
return fh.read() | ||
with open(readme_path) as readme_file: | ||
return readme_file.read() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
setup( | ||
name='nbsrc', | ||
version='0.4.0', | ||
version='0.4.3', | ||
author='Marc Wouts', | ||
author_email='[email protected]', | ||
description='Jupyter notebooks from/to python and R scripts', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters