015f0b12ab899d3c5ad19d75f1b8d25e8296faca,pysos/kernel.py,SoS_Kernel,handle_magic_preview,#SoS_Kernel#Any#,840
Before Change
{"name": "stderr", "text": "Can only pass variables to python kernel"})
def handle_magic_preview(self, options):
try:
options = interpolate(options, sigil="${ }", local_dict=env.sos_dict._dict)
except Exception as e:
self.send_response(self.iopub_socket, "stream",
{"name": "stdout", "text": "Failed to interpolate {}: {}\n".format(short_repr(options), e)})
self.send_response(self.iopub_socket, "stream",
{"name": "stdout", "text": str(e)})
return
// find filenames and quoted expressions
import shlex
items = shlex.split(options)
if not items:
return
After Change
return None
def handle_magic_preview(self, options):
options = self._interpolate_option(options, quiet=True)
if options is None:
return
// find filenames and quoted expressions
import shlex
items = shlex.split(options)
if not items:
return
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 21
Instances
Project Name: vatlab/SoS
Commit Name: 015f0b12ab899d3c5ad19d75f1b8d25e8296faca
Time: 2016-11-17
Author: ben.bog@gmail.com
File Name: pysos/kernel.py
Class Name: SoS_Kernel
Method Name: handle_magic_preview
Project Name: vatlab/SoS
Commit Name: 015f0b12ab899d3c5ad19d75f1b8d25e8296faca
Time: 2016-11-17
Author: ben.bog@gmail.com
File Name: pysos/kernel.py
Class Name: SoS_Kernel
Method Name: handle_magic_preview
Project Name: vatlab/SoS
Commit Name: 015f0b12ab899d3c5ad19d75f1b8d25e8296faca
Time: 2016-11-17
Author: ben.bog@gmail.com
File Name: pysos/kernel.py
Class Name: SoS_Kernel
Method Name: handle_shell_command
Project Name: vatlab/SoS
Commit Name: 015f0b12ab899d3c5ad19d75f1b8d25e8296faca
Time: 2016-11-17
Author: ben.bog@gmail.com
File Name: pysos/kernel.py
Class Name: SoS_Kernel
Method Name: handle_magic_cd