Message Boards Message Boards

GROUPS:

Notebook works in Mathematica 12 but not in the cloud

Posted 8 months ago
932 Views
|
1 Reply
|
0 Total Likes
|

Posted 8 months ago

Wolfram Cloud is behaving erratically for me right now so I cannot test the cloud version. There is a typo. lrn = Length[nucNamesA], nucNamesA is not defined. Here is another (I think simpler) way to create the UI for selecting nucleotides.

numButtons = Length@nucNames;
perRow = 10;
selected = {};

Dynamic@selected
Grid[
  Map[Button[#, selected = If[MemberQ[selected, #], DeleteCases[selected, #], Append[selected, #]], 
    Appearance -> Dynamic@{"Palette", If[MemberQ[selected, #], "Pressed", "Normal"]}] &,
  Partition[nucNames, UpTo@perRow], {2}],
 Alignment -> {Center, Center},
 Spacings -> {0, 0}]

enter image description here

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract