Skip to content

Commit

Permalink
Disable highlighting (#23)
Browse files Browse the repository at this point in the history
* update

* add tune setup

* update

* update

* update

* update

* update

* update
  • Loading branch information
goodwanghan authored Apr 23, 2021
1 parent 65c21f2 commit 615a72e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Fugue for Kaggle users

## Release History

### 0.2.2

* Disable Fugue SQL highlighting on Kaggle, they no longer support it

### 0.2.1

* Upgrade fugue dependency and add tune dependency and support
Expand Down
5 changes: 4 additions & 1 deletion fuggle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import fugue_notebook as fn
from fuggle_version import __version__
from fugue_sql import FugueSQLWorkflow as Dag
from IPython import get_ipython
from tune import TUNE_OBJECT_FACTORY, Monitor, NonIterativeObjectiveRunner
from tune_hyperopt import HyperoptRunner
from tune_notebook.vis import (
Expand All @@ -26,7 +27,9 @@ def setup(default_engine: str = "") -> Any:
TUNE_OBJECT_FACTORY.set_noniterative_objective_runner_converter(_to_runner)
TUNE_OBJECT_FACTORY.set_monitor_converter(_to_monitor)

return fn.setup(KaggleNotebookSetup(default_engine))
# we no longer enable SQL highlighting, kaggle has changed
ip = get_ipython()
fn._setup_fugue_notebook(ip, KaggleNotebookSetup(default_engine))


def _to_runner(obj: Any) -> Optional[NonIterativeObjectiveRunner]:
Expand Down
2 changes: 1 addition & 1 deletion fuggle_version/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.1"
__version__ = "0.2.2"

0 comments on commit 615a72e

Please sign in to comment.