@magic.line_cell_magic
    @magic_arguments()
    @argument('-b', '--base', type=int, default=0, help='First address in map')
    @argument('-s', '--scale', type=int, default=256, help='Scale in bytes per pixel')
    @argument('-w', '--width', type=int, default=4096, help='Size of square hilbert map, in pixels')
    @argument('x', type=int)
    @argument('y', type=int)
    def msl(self, line, cell=''):
        args = parse_argstring(self.msl, line)
        return int(args.base + args.scale * hilbert(args.x, args.y, args.width))
Memsquare lookup
dataset/ETHPy150Open scanlime/coastermelt/backdoor/shell_magics.py/ShellMagics.msl