Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 675630891
  • Loading branch information
metrizable authored and colaboratory-team committed Nov 22, 2024
1 parent b11ec1f commit 113b199
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions google/colab/_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
from ipykernel import jsonutil
from ipykernel import zmqshell
from IPython.core import alias
from IPython.core import compilerop
from IPython.core import inputsplitter
from IPython.core import interactiveshell
from IPython.core import oinspect
Expand Down Expand Up @@ -70,6 +71,10 @@ def init_history(self):
self.history_manager = _history.ColabHistoryManager(shell=self, parent=self)
self.configurables.append(self.history_manager)

def init_instance_attrs(self):
self.compiler_class = compilerop.CachingCompiler
super().init_instance_attrs()

def _should_use_native_system_methods(self):
# TODO: Update to match intended values, as appropriate.
return bool(os.getenv('USE_NATIVE_IPYTHON_SYSTEM_COMMANDS'))
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# Note: these dependency versions should be kept in-sync with the versions
# specified in the docker container requirements files.
'google-auth==2.27.0',
'ipykernel==5.5.6',
'ipykernel==6.17.1',
'ipyparallel==8.8.0',
'ipython==7.34.0',
'notebook==6.5.5',
Expand Down

0 comments on commit 113b199

Please sign in to comment.