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

Added first Jupyter tutorial for Boolean logic #444

Closed
wants to merge 1 commit into from
Closed

Conversation

mikand
Copy link
Contributor

@mikand mikand commented Oct 12, 2017

No description provided.

@mikand
Copy link
Contributor Author

mikand commented Oct 12, 2017

GitHub now has a viewer for these files: https://github.com/pysmt/pysmt/blob/tutorial/docs/notebooks/boolean_logic.ipynb

@marcogario
Copy link
Contributor

How can we integrate this with the documentation? What I do not like about jupyter notebook is that files cannot be used outside jupyter. For example, there is no obvious way to execute this notebook when we run the CI.

For these reasons, I would keep /examples as pure python. However, we have docs/tutorials.rst that (currently) imports every file in /examples . Maybe it would make sense to have this in Jupyter format, and exported as HTML for the documentation?

@mikand
Copy link
Contributor Author

mikand commented Oct 13, 2017

Actually, you can execute a notebook:

$ jupyter-nbconvert --to python boolean_logic.ipynb
$ python boolean_logic.py

and you can also automatically generate the markdown in the very same way:

$ jupyter-nbconvert --to markdown boolean_logic.ipynb
$ cat boolean_logic.md

I think I can include a test of this in Travis, not sure how to include this in the docuemntation on readthedocs...

@marcogario
Copy link
Contributor

Our documentation is in restructured text. If we can generate that, then I think we can make a list of some selected examples that would be nice to have as notebooks and manually generate the source for the docs. I do not think that we need to automate the generation from the notebooks to the doc.

@mikand
Copy link
Contributor Author

mikand commented Oct 15, 2017

There is a converter also for rst:
$ jupyter-nbconvert --to python boolean_logic.ipynb

However, I do not know how well it performs for complex markup in the cells.

@marcogario marcogario added this to the Backlog milestone Nov 19, 2017
@mikand
Copy link
Contributor Author

mikand commented Oct 29, 2018

Closing in favor of #535

@mikand mikand closed this Oct 29, 2018
marcogario pushed a commit that referenced this pull request Oct 30, 2018
Tutorial on boolean logic derived from the Jupyter notebook from #444.
yoni206 pushed a commit to yoni206/pysmt that referenced this pull request Nov 20, 2018
Tutorial on boolean logic derived from the Jupyter notebook from pysmt#444.
nbailluet pushed a commit to nbailluet/pysmt that referenced this pull request Mar 14, 2024
Tutorial on boolean logic derived from the Jupyter notebook from pysmt#444.
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

Successfully merging this pull request may close these issues.

2 participants