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

Including importnb into ipynb #46

Open
wants to merge 379 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
379 commits
Select commit Hold shift + click to select a range
32f41a0
Use _SpecMethods properly in python 3.4
tonyfast May 18, 2018
68a1e02
Add a conda arch shield
tonyfast May 18, 2018
01df7e9
The from_filename method allows for all of the Notebook keywords to c…
tonyfast May 18, 2018
b927f22
Support Notebook parameters in the from_filename attribute.
tonyfast May 18, 2018
bbe5096
Loader supports paths
tonyfast May 18, 2018
22ce74b
Add PythonDataScienceHandbook and ThinkDSP to a benchmarks folder
tonyfast May 18, 2018
901ae64
A markdown export of the benchmark readme
tonyfast May 18, 2018
9411cc1
Update the benchmark code
tonyfast May 18, 2018
be07bc6
Use nbviewer for the github pages
tonyfast May 19, 2018
932cf43
Remove doc build from the readme
tonyfast May 19, 2018
dd95e4b
Remove the pages deployment from travis.
tonyfast May 19, 2018
75b6b86
Add hyperlinks to the readme
tonyfast May 19, 2018
48fdd1b
Update readme
tonyfast May 19, 2018
585af20
write the readme.md file
tonyfast May 19, 2018
20fc8c1
Refactor the compile notebook and expose an export function to format…
tonyfast May 19, 2018
b7c9dec
Use the export function in teh decoder.
tonyfast May 19, 2018
695f423
Add a jinja2 template to format the markdown cells are block strings
tonyfast May 19, 2018
42d8eee
Append the formatted python source code.
tonyfast May 19, 2018
3ad89c7
Use the new export function in the readme
tonyfast May 19, 2018
4892a06
Clean up the utils
tonyfast May 19, 2018
da517da
Add docstring information to the readme
tonyfast May 19, 2018
ba042dc
Add a docstring test.
tonyfast May 19, 2018
2e00b87
delete old cpompiler files
tonyfast May 20, 2018
57092ad
export load, loads from decoder
tonyfast May 20, 2018
e5fe111
Use the decoder in the compilers to load the markdown as a string
tonyfast May 20, 2018
d7a61c3
Remove the decode dependency from compile
tonyfast May 20, 2018
c661245
Explicit names for the compiler and exporter classes giving a nicer g…
tonyfast May 20, 2018
13d8d21
End the markdown quotes on a new lines
tonyfast May 20, 2018
5ccb0d5
Explicit class names for the parameterize functions.
tonyfast May 20, 2018
5b977f0
Add an ability to load python files as modules with from_filename
tonyfast May 20, 2018
fee19aa
Format source code.
tonyfast May 20, 2018
ab377f1
Default docstring just in case
tonyfast May 20, 2018
f356459
Add a notebook doctest program
tonyfast May 20, 2018
7aefcd8
Doctest a module in the tests.
tonyfast May 20, 2018
dcec7fe
Remove some output from the readme.
tonyfast May 20, 2018
71610a3
Add an importer that runs tests upon opening.
tonyfast May 20, 2018
ebb6079
Create a reusable testmod function
tonyfast May 20, 2018
855a094
Docstrings to test code
tonyfast May 20, 2018
41a2e4b
Use builtin singledispatch
tonyfast May 20, 2018
82b45e2
Remove the tox requirements and use pytest syntax for the tests.
tonyfast May 20, 2018
c7134db
Add more tests
tonyfast May 20, 2018
1b82bb5
Apply python 3.7 docstring node values
tonyfast May 20, 2018
74bca3c
print docstrings for fixing these tests.
tonyfast May 20, 2018
6ff9d21
3.7 mystery bug
tonyfast May 21, 2018
70be962
Give up on this one soon
tonyfast May 21, 2018
07df861
Skip the docstring test in 3.7
tonyfast May 21, 2018
f5343d9
Skip the doctest test until the docstring is fixed
tonyfast May 21, 2018
b6767d1
Remove the print statements from tox
tonyfast May 21, 2018
5dc3a8d
modify how the changelog is read and remove the markdown version
tonyfast May 21, 2018
45073a7
Include the changelog.ipynb in the manifest
tonyfast May 21, 2018
08c210c
Make Notebook classes callable and make from_filename an regular method.
tonyfast May 21, 2018
ad2fa4f
Use the default IPython transformer
tonyfast May 21, 2018
81df1e1
Work on the compile module
tonyfast May 21, 2018
dda404a
Update the benchmark with the new from file code
tonyfast May 21, 2018
7421cc8
Don't forget the rest of the benchmarks
tonyfast May 21, 2018
15d131f
Demonstrate the callable loader
tonyfast May 21, 2018
524966c
Swap changelog version
tonyfast May 21, 2018
80966b3
Remove opinions and introduce a test loader. (#39)
tonyfast May 21, 2018
c9dd464
Move the notebooks to the src so they may be accessed with package re…
tonyfast May 21, 2018
387d98c
Update how the source code is formatted
tonyfast May 21, 2018
032648b
Include the nbdoctest notebook
tonyfast May 21, 2018
f0b85f2
Merge branch 'refactor-for-docs'
tonyfast May 22, 2018
810eac3
Drop the Python / IPython specific compilers (#40)
tonyfast May 22, 2018
e692e44
Simplify the testing
tonyfast May 22, 2018
c57ab8f
Remove lines from the loader module
tonyfast May 23, 2018
61e8020
Use importlib_resources
tonyfast May 23, 2018
723425a
Fix the loader mro
tonyfast May 23, 2018
907aaa7
The from_resource function accepts lazy loading.
tonyfast May 23, 2018
93dfcae
Add a function to execute notebooks as main modules
tonyfast May 24, 2018
1dc1436
Append an execute module that provides cell by cell output
tonyfast May 24, 2018
dc38fc7
Add execute to the tests
tonyfast May 24, 2018
95170de
Use create module now
tonyfast May 24, 2018
2d35b1f
Python 34 compat
tonyfast May 25, 2018
1498f4e
py34 compat
tonyfast May 25, 2018
414def9
py34 compat
tonyfast May 25, 2018
e1e60cd
shuffle the decoder reading
tonyfast May 25, 2018
95fd6f7
Add dependency to loader
tonyfast May 25, 2018
4b3729e
Push actual loader changes
tonyfast May 25, 2018
1e4d53a
force loader change
tonyfast May 25, 2018
cf43f5d
Abstract the ability to pass variables and paramterize models.
tonyfast May 25, 2018
664ba3c
No star star busyness in py34, use chainmap
tonyfast May 25, 2018
edd776a
Modifications to parameterization.
tonyfast May 26, 2018
9262c1a
Reorder the hierarchy of the classes.
tonyfast May 27, 2018
0077630
The tests pass locally after the refactor.
tonyfast May 27, 2018
82a36cb
The docstrings are an issue in 3.7
tonyfast May 27, 2018
0185e39
Deprecate parameterize for execute
tonyfast May 28, 2018
2e83b68
Make the necessary changes for parameterize
tonyfast May 28, 2018
4551395
Replace docstrings in utils source
tonyfast May 28, 2018
7a9bd4b
Update the readme
tonyfast May 28, 2018
e863de1
Merge changes that use separate the application of ast NodeTransforme…
tonyfast May 28, 2018
749b88e
Initialize the context manager.
tonyfast May 28, 2018
7b4834e
Initialize stdout and stderr differently
tonyfast May 28, 2018
2679f6c
Introduce an interactive loader class the has an execute_cell method
tonyfast May 28, 2018
e208bcd
Modify sys paths in from_file. Allow change directory abilities in t…
tonyfast May 28, 2018
675ef09
Copy the module during parameterization
tonyfast May 29, 2018
59ce1eb
Add interactive to the namespace.
tonyfast May 29, 2018
34fb9cb
Pathify strings when changing working directories
tonyfast May 29, 2018
f9705d0
Change directories and update teh sys path when dir is provided
tonyfast May 29, 2018
0167aa9
Skip the test temporary directory test in python
tonyfast May 29, 2018
75b1d46
Modify the test notebook a little
tonyfast May 29, 2018
ce133c0
Print python test output
tonyfast May 29, 2018
e422fd2
Print the files
tonyfast May 29, 2018
c120c6b
No stars in 34
tonyfast May 29, 2018
86538bf
Merge changes that simplify the use of the AST
tonyfast May 29, 2018
6375aa0
Merge branch 'master' of https://github.com/deathbeds/importnb
tonyfast May 29, 2018
6090f56
Bump version 0.3.0
tonyfast May 29, 2018
08324f0
Make the python test notebook nbformat
tonyfast May 29, 2018
72479f6
Put something in the changelog
tonyfast May 29, 2018
cce83e5
Express Module, Interactive, and Expressions in the interactive mode.
tonyfast May 31, 2018
3f52a3a
Import parameterize properly
tonyfast May 31, 2018
980adef
Correct the import in the test
tonyfast May 31, 2018
99c29c6
Move the doctests in the parameterize source.
tonyfast May 31, 2018
6790e43
Decode source 3.4 compat
tonyfast May 31, 2018
61c029e
Remove unused imports
tonyfast May 31, 2018
0fe1030
Markdown cells leading functions and classes may be used as docstrings.
tonyfast Jun 1, 2018
891e4a7
Use importnb to run the readme
tonyfast Jun 1, 2018
bafc5cc
Delete cruft
tonyfast Jun 1, 2018
772c669
Add black to the deploy to format the source.
tonyfast Jun 1, 2018
6ee3274
The function/class docstring opinion is non canonical
tonyfast Jun 2, 2018
0d6a51b
Drop the decoder file
tonyfast Jun 2, 2018
d612850
Exclude the files named test
tonyfast Jun 2, 2018
9213589
Remove teh decoder dependency from the path_hooks
tonyfast Jun 2, 2018
388d3ea
Rename the test files.
tonyfast Jun 2, 2018
a73ff76
Remove references to the tests from init
tonyfast Jun 2, 2018
f622037
Remove notebooktest from all
tonyfast Jun 2, 2018
2d65568
Remove expression in unittests
tonyfast Jun 2, 2018
b410401
Improve the unittesting ability.
tonyfast Jun 2, 2018
bba090a
Improve the ability to change the loader position.
tonyfast Jun 3, 2018
88ed1d5
Changelog
tonyfast Jun 3, 2018
b32981f
Modify the readme for a release.
tonyfast Jun 4, 2018
8251477
Update the readme more
tonyfast Jun 4, 2018
49303f5
Add _outputs to CaptureIO and update teh display actions in execute s…
tonyfast Jun 4, 2018
c6118e8
Add tests
tonyfast Jun 4, 2018
e0ac49c
permit parameterized cli scripts
tonyfast Jun 4, 2018
8df1796
Add a kernel configuration to nbconvert --execute
tonyfast Jun 4, 2018
eca9097
Rmove the nbconvert line from tox 😕
tonyfast Jun 4, 2018
6a28316
Add 3.7 to the setup
tonyfast Jun 4, 2018
d934adf
Remove readme run from travis
tonyfast Jun 4, 2018
c117f5e
Remove the watchdog stuff because it is not python or ipython
tonyfast Jun 4, 2018
cfd9fc5
Change some class names for better visuals
tonyfast Jun 4, 2018
a258067
Add the UML to the readme
tonyfast Jun 4, 2018
d4abef6
Trim dependencies from the tests and binder setup
tonyfast Jun 4, 2018
bf62635
Minor changes to the command line usage and parameterization.
tonyfast Jun 4, 2018
4cf6c7a
Fix the command line test.
tonyfast Jun 4, 2018
8e6ce20
Change doctest in loader and remove the automatic changedir command.
tonyfast Jun 4, 2018
de226de
Modify the readme
tonyfast Jun 4, 2018
813c5d7
Small copy changes
tonyfast Jun 5, 2018
b1f6db5
Fix main usage in the readme
tonyfast Jun 5, 2018
afd9d00
Remove parameter from Notebook
tonyfast Jun 5, 2018
ff895d7
Update the UML
tonyfast Jun 5, 2018
776b514
Enhance the help statement in the cli
tonyfast Jun 6, 2018
c2dd398
Mentioning pytest usage at the top of the readme.
tonyfast Jun 6, 2018
7f07fc7
Add testing information sooner to the readme because notebooks are go…
tonyfast Jun 6, 2018
2d719d2
Remove extra in the loader
tonyfast Jun 6, 2018
57d2587
Change the description for the PyPi release
tonyfast Jun 6, 2018
6230010
Bump version
tonyfast Jun 6, 2018
2f35cc8
Generalize more aspects of the importer (#47)
tonyfast Jun 14, 2018
019e484
Add the idea of remote importing to importnb.
tonyfast Jun 14, 2018
3f6c964
add a link docstring to remote and place remote in __init__
tonyfast Jun 14, 2018
9519a6e
Merge branch 'master' of https://github.com/deathbeds/importnb
tonyfast Jun 14, 2018
9a9de9b
Add another remote example
tonyfast Jun 14, 2018
0c3471a
make remote pure builtin python
tonyfast Jun 14, 2018
c44ca07
Add some binder instructions
tonyfast Jun 14, 2018
c3cc724
Consider binder with remote
tonyfast Jun 14, 2018
de6a019
Add the ability to import files with numbers and special characters. …
tonyfast Jun 15, 2018
61777ab
Merge branch 'master' of https://github.com/deathbeds/importnb
tonyfast Jun 15, 2018
eede5f8
Remove the benchmarks folder
tonyfast Jun 15, 2018
61043e6
Remove extra notebook
tonyfast Jun 15, 2018
422247e
Allow relative imports with the importnb extension (#50)
tonyfast Jun 16, 2018
49b98a9
Update the readme
tonyfast Jun 16, 2018
abda70f
Split up the source code into smaller files.
tonyfast Jun 16, 2018
4edc272
Remove errant format attribute
tonyfast Jun 18, 2018
1703ce3
Import the dedent formatter correctly.
tonyfast Jun 18, 2018
aa70733
update the dev version
tonyfast Jun 19, 2018
aee4192
Update the readme and classes
tonyfast Jun 19, 2018
b30311a
Upadte the changelog
tonyfast Jun 19, 2018
7a10aef
Turn off the shell for the default ipython extension
tonyfast Jul 6, 2018
5e8e8b5
Extensions (#53)
tonyfast Jul 6, 2018
c20cf2e
Provide some predictable logic to fuzzy imports close #54
tonyfast Jul 6, 2018
82465a0
Make sure no shell means no shell and change the initial settings to …
tonyfast Jul 7, 2018
cce9ceb
Explicitly create the module and assign the fuzzy name to the SYS mod…
tonyfast Jul 7, 2018
840ae1a
Formalize the predictable finder and deal with dotted names
tonyfast Jul 7, 2018
b1dc6de
Use the interactive loader as a default
tonyfast Jul 7, 2018
cb547f8
Revert "Formalize the predictable finder and deal with dotted names"
tonyfast Jul 7, 2018
13ed62d
Revert "Make sure no shell means no shell and change the initial sett…
tonyfast Jul 7, 2018
aa3f9ec
Something was buggered up. Now the default loader is Interactive wit…
tonyfast Jul 8, 2018
54ffac4
rename parts of the api to make the importer more extensible. fix tes…
tonyfast Jul 8, 2018
5494eeb
Remove the weird ast node interactivity thing and fix the markdown ce…
tonyfast Jul 9, 2018
f3324f9
Create postBuild
tonyfast Jul 10, 2018
3093dc2
Automatically install importnb on binder
tonyfast Jul 10, 2018
1a25b35
Give more thought to the file finder
tonyfast Jul 10, 2018
c204c14
Merge branch 'master' of https://github.com/deathbeds/importnb
tonyfast Jul 10, 2018
c9866d9
An IPython extension to extend the completion system (#56)
tonyfast Jul 11, 2018
a953186
Blacken code
tonyfast Jul 12, 2018
17849a2
Add a message when installing importnb
tonyfast Jul 12, 2018
fbcfe9d
Update pyreverse views
tonyfast Jul 12, 2018
4a2881d
Include changes in the readme
tonyfast Jul 12, 2018
9703eb5
update travis creds
tonyfast Jul 12, 2018
b3b9e32
Update .travis.yml
tonyfast Jul 12, 2018
3f1fa8e
Simplify the extension system. (#59)
tonyfast Jul 12, 2018
52e6c17
Enhance how the extensions and pytest plugins are invoked. (#61)
tonyfast Jul 17, 2018
7c3e863
Helpers to identify the running state of a module (#63)
tonyfast Jul 23, 2018
77161f9
Update requirements.txt
tonyfast Aug 13, 2018
9eaffa2
Significant refactor to the core model. (#64)
tonyfast Aug 15, 2018
f322b12
Update the version
tonyfast Aug 15, 2018
7e67e60
Change parameterize globals
tonyfast Sep 18, 2018
f90f927
Remove default shell for the extension.
tonyfast Sep 26, 2018
c4d5cf8
Provide docstrings to async functions.
tonyfast Oct 2, 2018
4183341
3.4 async docstrings
tonyfast Oct 2, 2018
48ce460
Fix bad marshal data (#66)
tonyfast Oct 13, 2018
6ec1e54
Update the version
tonyfast Oct 13, 2018
edd6045
Merge branch 'master' of https://github.com/deathbeds/importnb
tonyfast Oct 13, 2018
c480ac7
Nbconvert execute (#67)
tonyfast Oct 14, 2018
749f4ad
Change Notebook signatures
tonyfast Oct 14, 2018
1b7dfe0
Fix the source for the Notebook signature parameters
tonyfast Oct 14, 2018
2bf9ca9
Fix the lazy parameter in the readme
tonyfast Oct 14, 2018
30b7b65
Fix the shell test
tonyfast Oct 14, 2018
f03832d
Simpler signature (#68)
tonyfast Oct 14, 2018
e012ca9
Rerun all of the notebooks so their outputs look sane.
tonyfast Oct 14, 2018
73c5b57
Run all of the notebooks locally so their outputs are updated
tonyfast Oct 14, 2018
1d3e18b
Remove the shell parameter from the loader (#73)
tonyfast Oct 19, 2018
7bec32d
Ipython profile creates a profile it doesn't exist. (#74)
tonyfast Oct 19, 2018
2d33af8
Remove helper (#77)
tonyfast Oct 23, 2018
212edaf
Pytest subclass (#79)
tonyfast Nov 21, 2018
c716ce4
Pathlike (#80)
tonyfast Nov 22, 2018
b287bce
Update paramterize (#82)
tonyfast Nov 23, 2018
f49853c
Improved approach to loading relative packages. All that was require…
tonyfast Nov 26, 2018
8b37ece
Update readme and readthedocs
tonyfast Dec 3, 2018
4fe1272
Update requirements.txt
tonyfast Dec 3, 2018
75ee322
Create readme.rst
tonyfast Dec 3, 2018
343a1a6
Create index.ipynb
tonyfast Dec 3, 2018
dad1bc0
update docs
tonyfast Dec 3, 2018
690fbcb
Pytest extensions to test restart and run all + docstrings (#84)
tonyfast Dec 5, 2018
7d80c3a
Update _version.py
tonyfast Dec 5, 2018
fe5bd88
Loader mods (#85)
tonyfast Dec 18, 2018
0ea3ec4
Capture docstrings in all block strings (#86)
tonyfast Dec 19, 2018
75d8578
Create .readthedocs.yml
tonyfast Dec 19, 2018
719c3cc
Only test monotonic if it is a notebook
tonyfast Dec 19, 2018
abfc733
Update _version.py
tonyfast Dec 19, 2018
14acf0e
Bump version and Remove monotonic condition
tonyfast Dec 19, 2018
ec870d1
dont support formatted strings for doctests (#87)
tonyfast Jan 13, 2019
81a562c
Add a customizable parser because of xonsh.
tonyfast May 10, 2019
3089a9a
Set up CI with Azure Pipelines
tonyfast Sep 28, 2019
aa5fc3f
remove importnb-run entry_point (#88)
bollwyvl Dec 6, 2019
1c25955
Add support for 3.8 (#91)
tonyfast Dec 6, 2019
d83cd63
Blacken (#92)
tonyfast Dec 6, 2019
633e9de
Merge remote-tracking branch 'importnb/master' into importnb
tonyfast Jan 2, 2020
bb1b9c1
Update setup.py
tonyfast Jan 2, 2020
94ae260
manage packages
tonyfast Jan 6, 2020
700132c
Update __init__.py
tonyfast Jan 22, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
python:
version: 3
setup_py_install: true
53 changes: 39 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,43 @@
language: python
python:
- "3.6-dev"
- 3.5
- 3.4
sudo: false
cache: pip
matrix:
include:
- { python: "3.6-dev", dist: xenial, sudo: true }
- { python: "3.7", dist: xenial, sudo: true }
- { python: "3.7-dev", dist: xenial, sudo: true }
- { python: "nightly", dist: xenial, sudo: true }
install:
- pip install pytest pytest-cov --upgrade
- pip install codecov --upgrade
- pip install pylint --upgrade
- pip install -e .
- pip install pytest pytest-cov --upgrade
- pip install codecov --upgrade
- pip install pylint --upgrade
- python setup.py sdist
- python setup.py bdist_wheel
- pip install -r requirements.txt
- python -m pip install dist/importnb-*.tar.gz --ignore-installed --no-deps

script:
- py.test --cov=./
- pylint ipynb
- tox
- importnb-install
- ipython -m readme
- jupyter nbconvert --to notebook --inplace readme.ipynb
- pylint ipynb
after_success:
- codecov
matrix:
allow_failures:
- python: 3.6-dev
- codecov
deploy:
# - provider: pypi
# user: docfast
# skip_cleanup: true
# password:
# secure: s9hSRaBCXVpCm2W0moHHAJrzceFWnbIZoZ2j8BhqwbwTicxqIvi8pN7XQWokZt5ymLUDn6OfZ7yap81LXN8XcRWPFTVGJXOuzCrJJuvn06kWx3/x7FZ+hNKCVrsL3wyXXwKTcj8gMUahArYFuseReoAKhcbyH2/yL4n6HXkgcXGWrFXcISVnbR5D+WOlTt3WzEOlh55BoMLUcmAbN8Wa32z8cSQyFcW6kz9DqwcpRy//vCYh4SC/GJZZc5bXX6ByqloxyHmb7MlONCoDEfm7O9fHho8cv9IEZXiZmgy+f0l/ugmGKFBIEp6hhxThD8opw3zQBwl1FHVMJcwqLi+ODmY6lB9xYgtO652wxNZuCkKCArUL/LqBspRTBruex/K2/XjLusln8lrDSExsDvFKWksRrMODW1YccUQK9nhMBrFH18kveIbwr5E41ZfbrWD8I8wn0jHnwiJ/zaYbtPpm0egiY0YfGTVAEQoWN5iV5u5zoDWZA8LiFwTYnywLogGhVbUPX+CkjC7dBm7hWUrkihS99F6nPaP+B4E5HWubp64qsJSko8V+cufrnsqGomG/StozKJhw4+5Zhb9xuWNk0nqhq3Jdi/m0BAsgPLjIriovCcuTqpYC0ojCtpjO+7qExk91N55vGKUIeUkkQAu8gAhQ29jXwxa1HEqy8YO+WUI=
# on:
# tags: true
# distributions: sdist bdist_wheel
# repo: deathbeds/importnb
# python: '3.6'

# - provider: pages
# skip-cleanup: true
# github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
# on:
# python: '3.6'
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include LICENSE readme.md changelog.ipynb
34 changes: 34 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Python package
# Create and test a Python package on multiple Python versions.
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/python

trigger:
- master

pool:
vmImage: 'ubuntu-latest'
strategy:
matrix:
Python35:
python.version: '3.5'
Python36:
python.version: '3.6'
Python37:
python.version: '3.7'

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
displayName: 'Use Python $(python.version)'

- script: |
python -m pip install --upgrade pip
pip install -r requirements.txt
displayName: 'Install dependencies'

- script: |
pip install pytest pytest-azurepipelines
pytest
displayName: 'pytest'
157 changes: 157 additions & 0 deletions changelog.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## CHANGELOG"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# 0.4.0\n",
"\n",
"* Fuzzy name completion.\n",
"* A configurable extension system for magics.\n",
"* `Interactive(shell=False)` is the default loader."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# 0.3.2\n",
"\n",
"* Add `remote` loader. Load notebooks from remote urls.\n",
"* Support a fuzzy name import system. Files with special characters and numbers are importable.\n",
"* An IPython magic to allow relative imports during interactive computing."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# 0.3.1\n",
"\n",
"* In loaders `Notebook`, `Interactive`, `Execute`, and `Parameterize`\n",
"* Remove `Partial`, `Lazy`, and `NotebookTest` loaders.\n",
"* The first Markdown cell imports as a docstrings, permitting doctests on markdown cells.\n",
"* `Notebook(globals={})` passes global values to the module\n",
"* `Notebook(dir=\"..\")` will change the working directory and path.\n",
"* The code is pure python and uses IPython when possible.\n",
"* `ipython -m importnb nodebook.ipynb` runs a notebook."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# 0.2.9\n",
"\n",
"* Include `Partial`, `Lazy`, and `NotebookTest` loaders.\n",
"* Transform markdown cells to literate block strings so they are included in the ast.\n",
" * `__doc__`'s are extracted from the first markdown cell or normal source code from a code cell.\n",
"* Export the python source code with `black`.\n",
"* `Notebook.from_filename` is a loader for paths and strings.\n",
"* Add `importnb.nbtest` for notebook testing tools..\n",
"* Benchmark `importnb` against existing notebooks.\n",
"* Include a `watchdog` trick to watch tests..\n",
"* Extend the project to >= 3.4\n",
"* Use nbviewer/github hierachy for the docs."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# 0.2.4\n",
"\n",
"* Use `tox` for testing\n",
"* Use a source directory folder structure for pytest and tox testing.\n",
"* Create a pytest plugin that discovers notebooks as tests. With `importnb` notebooks can be used as fixtures in pytest.\n",
"* Install `importnb` as an IPython extension.\n",
"* Support running notebooks as modules from the `ipython` command line\n",
"* Create a `setuptools` command to allow notebooks as packages. "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# 0.2.1\n",
"\n",
"* `importnb` supports notebook inputs from pure python environments. Two compatible compiler were created from IPython and Python\n",
"* `importnb.Partial` works appropriately by improving exceptions.\n",
"* All of the IPython magic syntaxes were removed to support Pure Python.\n",
"* The generated Python files are formatted with black.\n",
"* Tests were added to:\n",
"\n",
" * Validate the line number in tracebacks\n",
" * Test someone elses notebooks"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 0.1.4\n",
"- Pypi supports markdown long_description with the proper mimetype in long_description_content_type."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 0.1.3\n",
"- Include the RST files in the `MANIFEST.in`."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 0.1.2 (Unreleased)\n",
"- Use RST files to improve the literacy of the pypi description."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 0.1.1\n",
"- Released on PyPi "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 0.0.2\n",
"- Initial Testing Release"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "p6",
"language": "python",
"name": "other-env"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
40 changes: 40 additions & 0 deletions conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
project = 'importnb'
copyright = '2018, deathbeds'
author = 'deathbeds'

version = release = '0.5.0'

extensions = ['nbsphinx', 'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx',
'sphinx.ext.coverage', 'sphinx.ext.viewcode']

templates_path = ['docs/_includes']
source_suffix = '.ipynb'

master_doc = 'index'
exclude_patterns = [
'*.ipynb_checkpoints*', '.eggs*', '.tox*', 'build', 'dist', '_build', 'Thumbs.db', '.DS_Store']

pygments_style = 'sphinx'
html_theme = 'alabaster'
html_static_path = ['docs']

htmlhelp_basename = 'importnbdoc'
latex_elements = {}

latex_documents = [
(master_doc, 'importnb.tex', 'importnb Documentation',
'deathbeds', 'manual'),
]
man_pages = [
(master_doc, 'importnb', 'importnb Documentation',
[author], 1)]
texinfo_documents = [
(master_doc, 'importnb', 'importnb Documentation',
author, 'importnb', 'One line description of project.',
'Miscellaneous')]
epub_title = project
epub_author = author
epub_publisher = author
epub_copyright = copyright
epub_exclude_files = ['search.html']
intersphinx_mapping = {'https://docs.python.org/': None}
8 changes: 8 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
try:
from IPython import get_ipython
assert get_ipython()
except:
collect_ignore = [
"src/importnb/utils/ipython.py",
"src/importnb/completer.py"
]
Binary file added docs/classes_importnb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<meta http-equiv="Refresh" content="0; url=http://nbviewer.jupyter.org/github/deathbeds/importnb/blob/master/readme.ipynb" />
Binary file added docs/packages_importnb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/readme.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. include:: ../readme.ipynb
1 change: 1 addition & 0 deletions index.ipynb
2 changes: 2 additions & 0 deletions postBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jupyter labextension install jupyterlab-toc
importnb-install
Loading