-
Notifications
You must be signed in to change notification settings - Fork 7
Add support for IPython magic #44
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
0422131
build(pyproject.toml): add ipython support
rbpatt2019 2401f01
feat(pyprql/magic): adds ipython magic
rbpatt2019 df4a218
feat(magic/prql.py): rough working functionality
rbpatt2019 e21d4b9
feat(pyproject.toml): add duckdb-engine
rbpatt2019 f3a5274
fix(magic/prql.py): change default configurations
rbpatt2019 a53e172
fix(magic/prql.py): fix printing of results
rbpatt2019 2f51f92
docs(*): document magic
rbpatt2019 1a47609
style(magic/prql.py): apply lints
rbpatt2019 44c7893
build(actions): update lock file
rbpatt2019 c24228e
build(poetry.lock): revert to v 1.1.13
rbpatt2019 1e0da72
docs(magic): expand line vs cell explanation
rbpatt2019 f28d5cb
style(magic/prql.py): improve boolean checks
rbpatt2019 c70324b
build(pyproject.toml): improver IPython version specification
rbpatt2019 d555db0
docs(magic/README.md): correct typos
rbpatt2019 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -12,7 +12,7 @@ on: | |
| env: | ||
| POETRY_VERSION: 1.1.13 | ||
| PSR_VERSION: 7.28.1 | ||
| CACHE_NUMBER: 4 | ||
| CACHE_NUMBER: 5 | ||
|
|
||
| jobs: | ||
| form: | ||
|
|
||
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -32,4 +32,5 @@ | |
| myst_heading_anchors = 2 | ||
| myst_enable_extensions = [ | ||
| "html_admonition", | ||
| "colon_fence", | ||
| ] | ||
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # IPython and Jupyter Magic | ||
|
|
||
| For a "how-to" and usage instructions, | ||
| please see our [magic README](./magic_readme.md). | ||
| Documentation on extension loading [lives here](./magic_init.md), | ||
| while documentation on the magic class implementation [lives here](./magic_implement.md). | ||
|
|
||
| ```{toctree} | ||
| :hidden: | ||
| :maxdepth: 3 | ||
|
|
||
| magic_readme | ||
| magic_init | ||
| magic_implement | ||
| ``` |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # The PyPRQL Magic Implementation | ||
|
|
||
| ```{eval-rst} | ||
| .. automodule:: pyprql.magic.prql | ||
| :members: | ||
| :private-members: | ||
| ``` |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # Loading PyPRQL Magic | ||
|
|
||
| ```{eval-rst} | ||
| .. automodule:: pyprql.magic | ||
| :members: | ||
| :private-members: | ||
| ``` |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| ```{include} ../pyprql/magic/README.md | ||
| ``` |
This file contains hidden or 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,14 +1,19 @@ | ||
| # Source Code | ||
|
|
||
| Currently, the source code is divided as follows: | ||
|
|
||
| - `cli` module contains the command line interface logic. | ||
| See [cli](./cli.md). | ||
| See [Command Line Interface](./cli.md). | ||
| - `magic` module that implements the PRQL IPython/Jupyer magic. | ||
| See [IPython and Jupyter Magic](./magic.md). | ||
| - `assets` sub-package that contains a number of useful references. | ||
| See [assets](./assets.md). | ||
| See [Assets](./assets.md). | ||
|
|
||
| ```{toctree} | ||
| :hidden: | ||
| :maxdepth: 3 | ||
|
|
||
| cli | ||
| magic | ||
| assets | ||
| ``` |
This file contains hidden or 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,14 +1,18 @@ | ||
| icecream==2.1.1 | ||
| rich==12.2.0 | ||
| click==8.1.2 | ||
| prompt-toolkit==3.0.2 | ||
| Pygments==2.11.2 | ||
| icecream==2.1.2 | ||
| rich==12.4.1 | ||
| click==8.1.3 | ||
| prompt-toolkit==3.0.29 | ||
| Pygments==2.12.0 | ||
| fuzzyfinder==2.1.0 | ||
| SQLAlchemy==1.4.35 | ||
| SQLAlchemy==1.4.36 | ||
| pandas==1.4.2 | ||
| numpy==1.22.3 | ||
| prql_python==0.0.2 | ||
| ipython==7.33.0 | ||
| ipython-sql==0.4.0 | ||
| duckdb-engine==0.1.8 | ||
| traitlets==5.2.1.post0 | ||
| sphinx==4.3.2 | ||
| sphinx-rtd-theme==1.0.0 | ||
| myst-parser==0.17.0 | ||
| pytest==7.1.1 | ||
| prql_python==0.0.2 | ||
| myst-parser==0.17.2 | ||
| pytest==7.1.2 |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.