Wiki source code of Image online viewer LaVue

Last modified by grunewal on 2025/02/05 11:23

Show last authors
1 LaVue is a live image viewer maintained by DESY's FS-EC ([[FS-EC main page>>url:https://confluence.desy.de/display/FSEC/LaVue+-+GUI+Layout||shape="rect"]]).
2 At FLASH we use [[conda enviroments>>doc:IS.Working with Anaconda Python]] and LaVue polls DOOCS images via [[pydoocs>>url:https://confluence.desy.de/display/FLASHUSER/PythonDOOCS||shape="rect"]].
3
4 [[image:attach:image2019-10-22_11-1-57.png||height="250"]]
5
6 === Installation steps: ===
7
8 Optional: check which environments already exists
9
10 {{code language="bash" theme="Emacs" title="List enviroments"}}
11 user@host ~$ conda info --envs
12 {{/code}}
13
14 Optional: Create your personal environment
15
16 {{code language="bash" theme="Emacs" title="Create an enviroment"}}
17 user@host ~$ conda create -n ENV_NAME python=3.7
18 {{/code}}
19
20 Now activate the environment
21
22 {{code language="bash" theme="Emacs" title="Activate created enviroment"}}
23 user@host ~$ conda activate ENV_NAME
24 {{/code}}
25
26 {{note}}
27 If you get the a message: {{code language="none"}}conda: command not found{{/code}} this means your terminal is not started as a login-shell.
28
29 You can use e.g. {{code language="none"}}bash -l{{/code}} to fix this, or correct your terminal settings.
30 {{/note}}
31
32 Optional: Install the required packages
33
34 {{code language="bash" theme="Emacs" title="Install pydoocs, LaVue & dependencies "}}
35 (ENV_NAME) user@host ~$ conda install pydoocs lavue
36
37 {{/code}}
38
39 Optional: If conda says it can not find the packages, you'll have to add the following channels.
40
41 {{code language="bash" theme="Emacs" title="Add conda channels"}}
42 (ENV_NAME) user@host ~$ conda config --add channels http://doocspkgs.desy.de/pub/doocsconda/
43 (ENV_NAME) user@host ~$ conda config --add channels http://www.desy.de/~wwwuser/flashconda
44 {{/code}}
45
46 \\
47
48 Start working...
49
50 {{code language="bash" theme="Emacs" title="Start LaVue in expert mode"}}
51 (ENV_NAME) user@host ~$ lavue -m expert
52 {{/code}}
53
54 {{code language="bash" theme="Emacs" title="Start/ Create LaVue instance (profile)"}}
55 (ENV_NAME) user@host ~$ lavue -m expert -j PROFILE_NAME
56 {{/code}}
57
58
59 For the usage with DOOCS there is a small manual:
60
61
62
63 {{view-file att--filename="lavue.pdf" height="150"/}}
64
65 {{code language="bash" title="Additional filters by FS-EC"}}
66 (ENV_NAME) user@host ~$ pip install lavuefilters
67 {{/code}}
68
69 (% class="moz-quote-pre code" %)
70 (((
71 example for [[doc:FSEC.LaVue - Filter plugins]]:
72 )))
73
74 [[image:attach:memdump.png]]
75
76 ScreenCast using the "memory buffer widget":
77
78 \\
79
80
81
82 {{widget url="https://vimeo.com/371625284"/}}
83
84 \\
85
86 \\
87
88 \\