labscript-suite / labscript

The 𝗹𝗮𝗯𝘀𝗰𝗿𝗶𝗽𝘁 library provides a translation from expressive Python code to low-level hardware instructions.
http://labscriptsuite.org
BSD 2-Clause "Simplified" License
9 stars 51 forks source link

#23: Automatic data for insersion into labbook #23

Open philipstarkey opened 7 years ago

philipstarkey commented 7 years ago

Original report (archived issue) by Ian B. Spielman (Bitbucket: Ian Spielman, GitHub: ispielma).


Lyse should cull through metadata and insert some figures and text into the copy buffer to be pasted into the digital lab book.

philipstarkey commented 7 years ago

Original comment by Philip Starkey (Bitbucket: pstarkey, GitHub: philipstarkey).


Could this be done from within a lyse script rather than being baked into the lyse GUI? I've thought about making one of our lyse scripts "print" the graph to OneNote (since desktop OneNote is installed as a printer destination) but never got around to trying it.

philipstarkey commented 7 years ago

Original comment by Ian B. Spielman (Bitbucket: Ian Spielman, GitHub: ispielma).


Could be just a feature to be provided by lyse to be called in a script, yes. But I was thinking of this as part of the wrapper around matplotlib. I think that putting it in the paste buffer is better so the person working with the lab book can choose what they want to do. Dimi has the basic code for this working here already (in the sense of quick copying of lyse figures).

philipstarkey commented 7 years ago

Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).


I think all three of the following would be great:

  1. A "copy to clipboard" button added to the plot window
  2. A function you can call to trigger the copying to clipboard to happen (as things are now, the copying can't actually happen until after your code runs, because the plot window doesn't draw until afterwards - though we could probably change that)
  3. A function you can call to add content to what will be copied (whether programatically or by button click). Probably with options like "copy all of standard output" or "copy all saved variables".