-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from iqmo-org/Issue_27
Issue 27
- Loading branch information
Showing
4 changed files
with
37 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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 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,4 +1,21 @@ | ||
from magic_duckdb.magic import load_ipython_extension # noqa | ||
from magic_duckdb._version import __version__ | ||
from magic_duckdb._version import __commit__ | ||
from magic_duckdb._version import __commit_short__ | ||
|
||
# This must be modified before magic is initialized, before load_ipython_extension | ||
MAGIC_NAME = "dql" | ||
|
||
# Disable autocompletion initialization by setting this to False before loading extension | ||
ENABLE_AUTOCOMPLETE = True | ||
|
||
def load_ipython_extension(ip): | ||
"""Load the extension in IPython.""" | ||
if ip is None: | ||
raise ValueError("No ipython found") | ||
|
||
if ENABLE_AUTOCOMPLETE: | ||
from .autocomplete.common import init_completers | ||
init_completers(ip) | ||
|
||
from .magic import DuckDbMagic # type: ignore | ||
ip.register_magics(DuckDbMagic) |
This file contains 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 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,5 +1,5 @@ | ||
# development / testing only | ||
duckdb>=0.9.2 | ||
duckdb>=1.0.0 | ||
pandas>=2.1.2 | ||
ipython>=8.0.0 | ||
pyarrow>=12.0.0 | ||
|