APS-4ID-POLAR / ipython-polar

4-ID-Polar ipython configuration for bluesky (and other)
1 stars 3 forks source link

Register local ipython magics #83

Closed gfabbris closed 3 years ago

gfabbris commented 3 years ago

Creates a LocalMagics class from bluesky.magics.BlueskyMagics, which only replaces bluesky.plan_stubs.mv and bluesky.plan_stubs.mvr with the local mv and mvr.

Closes #80.

gfabbris commented 3 years ago

Codacy complains about the use of eval in lines 22, 23, 41, 42 of local_magics.py. This is how it's done in Bluesky, but I read a bit and it does seem to be a bit dangerous. Not sure there is another way to do this...