mirror of
https://github.com/satwikkansal/wtfpython.git
synced 2025-08-06 13:16:30 +02:00
Add instructions
This commit is contained in:
@@ -34,7 +34,7 @@ STATEMENT_PREFIXES = ["...", ">>> ", "$ "]
|
||||
|
||||
HOSTED_NOTEBOOK_INSTRUCTIONS = """
|
||||
|
||||
# Hosted notebook instructions
|
||||
## Hosted notebook instructions
|
||||
|
||||
This is just an experimental attempt of browsing wtfpython through jupyter notebooks. Some examples are read-only because,
|
||||
- they either require a version of Python that's not supported in the hosted runtime.
|
||||
@@ -48,7 +48,7 @@ The expected outputs are already present in collapsed cells following the code c
|
||||
# Prints out Python version here.
|
||||
```
|
||||
|
||||
That being said, most of tbe examples do work as expected. If you face any trouble, feel free to consult the original content on wtfpython and create an issue in the repo. Have fun!
|
||||
That being said, most of the examples do work as expected. If you face any trouble, feel free to consult the original content on wtfpython and create an issue in the repo. Have fun!
|
||||
|
||||
---
|
||||
"""
|
||||
@@ -350,4 +350,5 @@ with open(fpath, 'r+', encoding="utf-8") as f:
|
||||
except StopIteration as e:
|
||||
#pprint.pprint(result, indent=2)
|
||||
pre_stuff.append(HOSTED_NOTEBOOK_INSTRUCTIONS)
|
||||
result.sort(key = lambda x: x["read_only"])
|
||||
convert_to_notebook(pre_stuff, result, post_stuff)
|
||||
|
Reference in New Issue
Block a user