File tree 2 files changed +8
-2
lines changed
google/cloud/aiplatform/metadata
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -303,6 +303,7 @@ def set_experiment(
303
303
] = None ,
304
304
project : Optional [str ] = None ,
305
305
location : Optional [str ] = None ,
306
+ display_button : bool = True ,
306
307
):
307
308
"""Set the experiment. Will retrieve the Experiment if it exists or create one with the provided name.
308
309
@@ -326,6 +327,8 @@ def set_experiment(
326
327
location (str):
327
328
Optional. Location where this experiment will be retrieved from or created. Overrides location set in
328
329
aiplatform.init.
330
+ display_button (bool):
331
+ Optional. If set to `True`, displays a button to the experiment in the IPython notebook.
329
332
"""
330
333
self .reset ()
331
334
@@ -350,7 +353,8 @@ def set_experiment(
350
353
if not current_backing_tb and backing_tb :
351
354
experiment .assign_backing_tensorboard (tensorboard = backing_tb )
352
355
353
- _ipython_utils .display_experiment_button (experiment )
356
+ if display_button :
357
+ _ipython_utils .display_experiment_button (experiment )
354
358
355
359
self ._experiment = experiment
356
360
Original file line number Diff line number Diff line change @@ -430,7 +430,9 @@ def evaluate(
430
430
retry_timeout = retry_timeout ,
431
431
)
432
432
metadata ._experiment_tracker .set_experiment (
433
- experiment = global_experiment_name , backing_tensorboard = False
433
+ experiment = global_experiment_name ,
434
+ backing_tensorboard = False ,
435
+ display_button = False ,
434
436
)
435
437
elif self ._experiment and not global_experiment_name :
436
438
metadata ._experiment_tracker .set_experiment (
You can’t perform that action at this time.
0 commit comments