`has_apple_gpu_accelerator()` is False on jupyter-lab on my Macbook

Thanks for this. works perfectly fine :tada:

Additionally, I found something on the Jupyter forum to add the mojo magic to all the cells. Simply adding the following code to the first cell of the notebook works for me.

import mojo.notebook

def run_all_cell_with_magics(lines):
    new_lines = [] 
    new_lines.append("%%mojo") #this works
    #new_lines.append("%%timeit \n") # this does not work

    for line in lines:
        new_lines.append(line)
    return new_lines

ip = get_ipython()
ip.input_transformers_cleanup.append(run_all_cell_with_magics)
2 Likes