-
Notifications
You must be signed in to change notification settings - Fork 17
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
DOC: README.md: Inline i/o from Example.ipynb #89
Comments
@fperez @Carreau @choldgraf @mwouts |
I guess in general the Readme could use a bit of a touch up and reorganization. As the Readme is quite long as-is, I am not really in favor of adding more content, though.
Re how to achieve this: I guess writing a custom converter would be easiest (the notebook format is quite easy to parse). |
Just that "Extended Usage" is more apidoc (see also sphinx-apidoc & jupyter-book, nbdev) than usage examples. Maybe just bold the "example notebook" link? |
Hey @westurner , yes you're right in the end we never developed the text notebook format with outputs - sorry about that. I like seeing this project about making test available in the notebook! BTW Jupyter and Pytest are probably my two favorite tools. In Pytest I write a lot of |
See my note here re. recent discussion about md+outputs, I hope it's useful. |
@westurner That's a fair point. I will experiment a bit with rewriting the readme. Getting a bold link to the example notebook, should be doable whatever I come up with :)
@mwouts what are you exact requirements? Fixtures should already work. So far I did not run into any problems, but I guess it depends a bit your usage pattern. Example: import ipytest
ipytest.autoconfig() %pycat conftest.py import pytest
@pytest.fixture
def my_fixture():
return 21 %%ipytest
def test_example(my_fixture):
assert my_fixture * 2 == 42
|
Work on readme started in #92. |
Updated docs: simplified readme with a more prominent link to the example notebook. |
Could the usage examples from Example.ipynb be inlined into the README.md?
pandoc --from=html --to=gfm
than to try and save the input and output cells to Markdown with Jupyternbconvert
orjupytext
.(... Why {base64 output etc} is not included in most non-
.ipynb
notebook representations:CDATA
and/or must be escaped, which is whatnbconvert
does when generating HTML from.ipynb
JSON.From https://stackoverflow.com/questions/3302648/should-i-use-cdata-in-html5 :
The text was updated successfully, but these errors were encountered: