Skip to content

Commit d4f9513

Browse files
committed
Removed printing statements added while testing imageSmoothingEnabled attribute
1 parent 2e886ce commit d4f9513

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

ipycanvas/canvas.py

-4
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ def send_command(self, canvas, command, buffers=[]):
239239
]
240240
)
241241
self._current_canvas = canvas
242-
print("passed through send_commnad", command, buffers)
243242
self._send_custom(command, buffers)
244243

245244
def flush(self):
@@ -254,7 +253,6 @@ def flush(self):
254253

255254
def _send_custom(self, command, buffers=[]):
256255
metadata, command_buffer = commands_to_buffer(command)
257-
print("passed through _send_custom", command, metadata, [command_buffer]+buffers)
258256
self.send(metadata, buffers=[command_buffer] + buffers)
259257

260258

@@ -1546,8 +1544,6 @@ def __setattr__(self, name, value):
15461544
value = widget_serialization["to_json"](value, None)
15471545
if name == "image_smoothing_enabled":
15481546
value = str(value)
1549-
print("command sent:", name, value)
1550-
print(type(value))
15511547
self._canvas_manager.send_command(
15521548
self, [COMMANDS["set"], [self.ATTRS[name], value]]
15531549
)

src/widget.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525
} from './utils';
2626

2727
function getContext(canvas: HTMLCanvasElement) {
28-
var context = canvas.getContext('2d');
28+
const context = canvas.getContext('2d');
2929
if (context === null) {
3030
throw 'Could not create 2d context.';
3131
}
@@ -1103,9 +1103,6 @@ export class CanvasModel extends DOMWidgetModel {
11031103
}
11041104

11051105
async setAttr(attr: number, value: any) {
1106-
console.log("setting attribute")
1107-
console.log(CanvasModel.ATTRS[attr])
1108-
console.log(value)
11091106
if (typeof value === 'string' && value.startsWith('IPY')) {
11101107
const widgetModel: AsyncValueWidgetModel<any> = await unpack_models(
11111108
value,

0 commit comments

Comments
 (0)