Pasting long lines into the REPL takes too long in Win10?

When pasting long lines into the REPL, like the variable assignments below taken from this post, it seems to take forever for the REPL to consume the data as there is a lot of scrolling. Using Julia 1.6.1 on Win10.
Is this normal or is it only me?
Thank you.

NB: a similar type of annoyance but more frequent, happens with blocks of Julia code of medium size, when run with CTRL + ENTER in VS Code. The code interpretation output into the REPL/terminal scrolls and scrolls, and takes ages…

MST = [2.4579665e6, 2.4579665e6, 2.4579665e6, 2.4579665e6, 2.4579665e6, 2.4579665e6, 2.4579665e6, 2.4579665e6, 2.4579665e6, 2.4579665e6, 2.4579665e6, 2.4579665e6, 2.4579665e6, 2.4579665e6, 2.4579665e6, 2.4579665e6, 2.4579665e6, 2.4579665e6, 2.4579665e6, 2.4579665e6, 2.4579665e6, 2.4579665e6, 2.4579665e6, 2.4579665e6, 2.4579665e6, 2.4579665e6, 2.4579665e6, 2.4579665e6, 2.4579665e6, 2.4580165e6, 2.4580165e6, 2.4580165e6, 2.4580165e6, 2.4580165e6, 2.4580165e6, 2.4580165e6, 2.4580165e6, 2.4580165e6, 2.4580165e6, 2.4580165e6, 2.4580165e6, 2.4580165e6, 2.4580165e6, 2.4580165e6, 2.4580165e6, 2.4580165e6, 2.4580165e6, 2.4580165e6, 2.4580165e6, 2.4580165e6, 2.4580165e6, 2.4580165e6, 2.4580165e6, 2.4580165e6, 2.4580165e6, 2.4580165e6, 2.4580165e6, 2.4580665e6, 2.4580665e6, 2.4580665e6, 2.4580665e6, 2.4580665e6, 2.4580665e6, 2.4580665e6, 2.4580665e6, 2.4580665e6, 2.4580665e6, 2.4580665e6, 2.4580665e6, 2.4580665e6, 2.4580665e6, 2.4580665e6, 2.4580665e6, 2.4580665e6, 2.4580665e6, 2.4580665e6, 2.4580665e6, 2.4580665e6, 2.4580665e6, 2.4580665e6, 2.4580665e6, 2.4580665e6, 2.4580665e6, 2.4580665e6, 2.4581165e6, 2.4581165e6, 2.4581165e6, 2.4581165e6, 2.4581165e6, 2.4581165e6, 2.4581165e6, 2.4581165e6, 2.4581165e6, 2.4581165e6, 2.4581165e6, 2.4581165e6, 2.4581165e6, 2.4581165e6, 2.4581165e6, 2.4581165e6, 2.4581165e6, 2.4581165e6, 2.4581165e6, 2.4581165e6, 2.4581165e6, 2.4581165e6, 2.4581165e6, 2.4581165e6, 2.4581165e6, 2.4581165e6, 2.4581665e6, 2.4581665e6, 2.4581665e6, 2.4581665e6, 2.4581665e6, 2.4581665e6, 2.4581665e6, 2.4581665e6, 2.4581665e6, 2.4581665e6, 2.4581665e6, 2.4581665e6, 2.4581665e6, 2.4581665e6, 2.4581665e6, 2.4581665e6, 2.4581665e6, 2.4581665e6, 2.4581665e6, 2.4581665e6, 2.4581665e6, 2.4581665e6, 2.4581665e6, 2.4581665e6, 2.4581665e6, 2.4582165e6, 2.4582165e6, 2.4582165e6, 2.4582165e6, 2.4582165e6, 2.4582165e6, 2.4582165e6, 2.4582165e6, 2.4582165e6, 2.4582165e6, 2.4582165e6, 2.4582165e6, 2.4582165e6, 2.4582165e6, 2.4582165e6, 2.4582165e6, 2.4582165e6, 2.4582165e6, 2.4582165e6, 2.4582165e6, 2.4582165e6, 2.4582165e6, 2.4582165e6, 2.4582165e6, 2.4582665e6, 2.4582665e6, 2.4582665e6, 2.4582665e6, 2.4582665e6, 2.4582665e6, 2.4582665e6, 2.4582665e6, 2.4582665e6, 2.4582665e6, 2.4582665e6, 2.4582665e6, 2.4582665e6, 2.4582665e6, 2.4582665e6, 2.4582665e6, 2.4582665e6, 2.4582665e6, 2.4582665e6, 2.4582665e6, 2.4582665e6, 2.4582665e6, 2.4582665e6, 2.4583165e6, 2.4583165e6, 2.4583165e6, 2.4583165e6, 2.4583165e6, 2.4583165e6, 2.4583165e6, 2.4583165e6, 2.4583165e6, 2.4583165e6, 2.4583165e6, 2.4583165e6, 2.4583165e6, 2.4583165e6, 2.4583165e6, 2.4583165e6, 2.4583165e6, 2.4583165e6, 2.4583165e6, 2.4583165e6, 2.4583165e6, 2.4583165e6, 2.4583665e6, 2.4583665e6, 2.4583665e6, 2.4583665e6, 2.4583665e6, 2.4583665e6, 2.4583665e6, 2.4583665e6, 2.4583665e6, 2.4583665e6, 2.4583665e6, 2.4583665e6, 2.4583665e6, 2.4583665e6, 2.4583665e6, 2.4583665e6, 2.4583665e6, 2.4583665e6, 2.4583665e6, 2.4583665e6, 2.4583665e6, 2.4584165e6, 2.4584165e6, 2.4584165e6, 2.4584165e6, 2.4584165e6, 2.4584165e6, 2.4584165e6, 2.4584165e6, 2.4584165e6, 2.4584165e6, 2.4584165e6, 2.4584165e6, 2.4584165e6, 2.4584165e6, 2.4584165e6, 2.4584165e6, 2.4584165e6, 2.4584165e6, 2.4584165e6, 2.4584165e6, 2.4584665e6, 2.4584665e6, 2.4584665e6, 2.4584665e6, 2.4584665e6, 2.4584665e6, 2.4584665e6, 2.4584665e6, 2.4584665e6, 2.4584665e6, 2.4584665e6, 2.4584665e6, 2.4584665e6, 2.4584665e6, 2.4584665e6, 2.4584665e6, 2.4584665e6, 2.4584665e6, 2.4584665e6, 2.4585165e6, 2.4585165e6, 2.4585165e6, 2.4585165e6, 2.4585165e6, 2.4585165e6, 2.4585165e6, 2.4585165e6, 2.4585165e6, 2.4585165e6, 2.4585165e6, 2.4585165e6, 2.4585165e6, 2.4585165e6, 2.4585165e6, 2.4585165e6, 2.4585165e6, 2.4585165e6, 2.4585665e6, 2.4585665e6, 2.4585665e6, 2.4585665e6, 2.4585665e6, 2.4585665e6, 2.4585665e6, 2.4585665e6, 2.4585665e6, 2.4585665e6, 2.4585665e6, 2.4585665e6, 2.4585665e6, 2.4585665e6, 2.4585665e6, 2.4585665e6, 2.4585665e6, 2.4586165e6, 2.4586165e6, 2.4586165e6, 2.4586165e6, 2.4586165e6, 2.4586165e6, 2.4586165e6, 2.4586165e6, 2.4586165e6, 2.4586165e6, 2.4586165e6, 2.4586165e6, 2.4586165e6, 2.4586165e6, 2.4586165e6, 2.4586165e6, 2.4586665e6, 2.4586665e6, 2.4586665e6, 2.4586665e6, 2.4586665e6, 2.4586665e6, 2.4586665e6, 2.4586665e6, 2.4586665e6, 2.4586665e6, 2.4586665e6, 2.4586665e6, 2.4586665e6, 2.4586665e6, 2.4586665e6, 2.4587165e6, 2.4587165e6, 2.4587165e6, 2.4587165e6, 2.4587165e6, 2.4587165e6, 2.4587165e6, 2.4587165e6, 2.4587165e6, 2.4587165e6, 2.4587165e6, 2.4587165e6, 2.4587165e6, 2.4587165e6, 2.4587665e6, 2.4587665e6, 2.4587665e6, 2.4587665e6, 2.4587665e6, 2.4587665e6, 2.4587665e6, 2.4587665e6, 2.4587665e6, 2.4587665e6, 2.4587665e6, 2.4587665e6, 2.4587665e6, 2.4588165e6, 2.4588165e6, 2.4588165e6, 2.4588165e6, 2.4588165e6, 2.4588165e6, 2.4588165e6, 2.4588165e6, 2.4588165e6, 2.4588165e6, 2.4588165e6, 2.4588165e6, 2.4588665e6, 2.4588665e6, 2.4588665e6, 2.4588665e6, 2.4588665e6, 2.4588665e6, 2.4588665e6, 2.4588665e6, 2.4588665e6, 2.4588665e6, 2.4588665e6, 2.4589165e6, 2.4589165e6, 2.4589165e6, 2.4589165e6, 2.4589165e6, 2.4589165e6, 2.4589165e6, 2.4589165e6, 2.4589165e6, 2.4589165e6, 2.4589665e6, 2.4589665e6, 2.4589665e6, 2.4589665e6, 2.4589665e6, 2.4589665e6, 2.4589665e6, 2.4589665e6, 2.4589665e6, 2.4590165e6, 2.4590165e6, 2.4590165e6, 2.4590165e6, 2.4590165e6, 2.4590165e6, 2.4590165e6, 2.4590165e6, 2.4590665e6, 2.4590665e6, 2.4590665e6, 2.4590665e6, 2.4590665e6, 2.4590665e6, 2.4590665e6, 2.4591165e6, 2.4591165e6, 2.4591165e6, 2.4591165e6, 2.4591165e6, 2.4591165e6, 2.4591665e6, 2.4591665e6, 2.4591665e6, 2.4591665e6, 2.4591665e6, 2.4592165e6, 2.4592165e6, 2.4592165e6, 2.4592165e6, 2.4592665e6, 2.4592665e6, 2.4592665e6, 2.4593165e6, 2.4593165e6, 2.4593665e6];
TOF = [100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 450.0, 500.0, 550.0, 600.0, 650.0, 700.0, 750.0, 800.0, 850.0, 900.0, 950.0, 1000.0, 1050.0, 1100.0, 1150.0, 1200.0, 1250.0, 1300.0, 1350.0, 1400.0, 1450.0, 1500.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 450.0, 500.0, 550.0, 600.0, 650.0, 700.0, 750.0, 800.0, 850.0, 900.0, 950.0, 1000.0, 1050.0, 1100.0, 1150.0, 1200.0, 1250.0, 1300.0, 1350.0, 1400.0, 1450.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 450.0, 500.0, 550.0, 600.0, 650.0, 700.0, 750.0, 800.0, 850.0, 900.0, 950.0, 1000.0, 1050.0, 1100.0, 1150.0, 1200.0, 1250.0, 1300.0, 1350.0, 1400.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 450.0, 500.0, 550.0, 600.0, 650.0, 700.0, 750.0, 800.0, 850.0, 900.0, 950.0, 1000.0, 1050.0, 1100.0, 1150.0, 1200.0, 1250.0, 1300.0, 1350.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 450.0, 500.0, 550.0, 600.0, 650.0, 700.0, 750.0, 800.0, 850.0, 900.0, 950.0, 1000.0, 1050.0, 1100.0, 1150.0, 1200.0, 1250.0, 1300.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 450.0, 500.0, 550.0, 600.0, 650.0, 700.0, 750.0, 800.0, 850.0, 900.0, 950.0, 1000.0, 1050.0, 1100.0, 1150.0, 1200.0, 1250.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 450.0, 500.0, 550.0, 600.0, 650.0, 700.0, 750.0, 800.0, 850.0, 900.0, 950.0, 1000.0, 1050.0, 1100.0, 1150.0, 1200.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 450.0, 500.0, 550.0, 600.0, 650.0, 700.0, 750.0, 800.0, 850.0, 900.0, 950.0, 1000.0, 1050.0, 1100.0, 1150.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 450.0, 500.0, 550.0, 600.0, 650.0, 700.0, 750.0, 800.0, 850.0, 900.0, 950.0, 1000.0, 1050.0, 1100.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 450.0, 500.0, 550.0, 600.0, 650.0, 700.0, 750.0, 800.0, 850.0, 900.0, 950.0, 1000.0, 1050.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 450.0, 500.0, 550.0, 600.0, 650.0, 700.0, 750.0, 800.0, 850.0, 900.0, 950.0, 1000.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 450.0, 500.0, 550.0, 600.0, 650.0, 700.0, 750.0, 800.0, 850.0, 900.0, 950.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 450.0, 500.0, 550.0, 600.0, 650.0, 700.0, 750.0, 800.0, 850.0, 900.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 450.0, 500.0, 550.0, 600.0, 650.0, 700.0, 750.0, 800.0, 850.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 450.0, 500.0, 550.0, 600.0, 650.0, 700.0, 750.0, 800.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 450.0, 500.0, 550.0, 600.0, 650.0, 700.0, 750.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 450.0, 500.0, 550.0, 600.0, 650.0, 700.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 450.0, 500.0, 550.0, 600.0, 650.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 450.0, 500.0, 550.0, 600.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 450.0, 500.0, 550.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 450.0, 500.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 450.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 100.0, 150.0, 200.0, 250.0, 300.0, 100.0, 150.0, 200.0, 250.0, 100.0, 150.0, 200.0, 100.0, 150.0, 100.0];
ΔV  = [57.12796017064814, 86.6677829175468, 100.64508325897926, 100.66192549425003, 99.38927630310889, 97.7351260203709, 94.98702474974323, 88.02900884137702, 73.1565105972919, 57.16468363086139, 50.03501091798979, 73.39484911403636, 100.60655159711814, 102.19449229015507, 101.27844056463192, 100.30465871525043, 99.19950795669246, 96.10843612412553, 86.1712161283431, 70.87674041934233, 59.49158570346219, 66.01972153702758, 99.91655393284326, 104.31833444322535, 103.1917817262299, 101.94576769286483, 100.98071838928203, 99.33584573999131, 92.93679426842561, 46.756997832143256, 35.09771934976893, 67.92963236373575, 104.89897626286387, 106.69475397593854, 107.1615684145086, 103.01108067293656, 88.58324416662913, 70.32474191174447, 55.92723801839764, 46.08038597194688, 40.83476509167221, 50.57714857823702, 104.91969177277653, 107.98366837615178, 109.27442192340712, 108.7172600819055, 100.20036262823687, 84.17036356501674, 69.2701802666228, 58.0307556531828, 50.383865613463264, 49.6894961680487, 100.00970692086351, 109.0377199410708, 110.12610666277169, 110.71938058614862, 106.11889848025118, 35.35750897334828, 19.887136738946353, 12.33996555853706, 71.2174344910755, 114.41170877739617, 115.081507475583, 103.250811298099, 85.03783310266623, 69.42300835314897, 57.51781830420551, 48.353712717485955, 41.03838423257203, 34.99058882174292, 34.98549744909526, 115.07651918530799, 118.70308483026946, 112.7581846689006, 97.41361417237704, 82.07678145949912, 69.74340148955343, 59.913981835672146, 51.810671473504804, 44.85093304378156, 39.293807862782614, 112.8614465652408, 119.52849054490002, 117.6083117550659, 23.543175997105916, 15.810941951725102, 16.790611534855206, 46.08775285613025, 121.09523963055945, 114.99485328088882, 98.8069796407674, 83.7559434310051, 71.77222660500672, 62.2474564256614, 54.48840529161265, 48.0575201843792, 43.04612385132439, 44.72658014517055, 119.98516528214232, 122.5344884658854, 109.06448262286574, 94.46191703016527, 82.4098846883781, 72.6459967908748, 64.5169520906657, 57.556757480110456, 51.607378159131294, 48.21205417756186, 99.80273271612057, 126.15379532612182, 26.411008649446647, 22.20724302303415, 23.442677837931953, 55.35630180329149, 121.87283500349045, 109.19959339043929, 96.09154765426365, 85.241047846599, 76.33580642347972, 68.83854013035885, 62.34586006650709, 56.606976735514536, 51.683709719416306, 52.168202573158055, 127.74614096697013, 117.80219998768348, 104.63872067297919, 93.6216500588113, 84.63196538075509, 77.08292276788619, 70.52808311278966, 64.67447792755986, 59.40504180063661, 55.839136345606434, 120.81452777746753, 40.22029186461118, 32.70618756964628, 28.040208601394685, 75.57892783443505, 114.67617517990348, 104.38549431483489, 95.66453387322399, 88.33213555872663, 81.97674224006465, 76.26081687396662, 70.89387514941198, 65.49215923652548, 59.14241653449466, 51.34796802378245, 123.15124806822898, 111.6233094584073, 102.1114440211025, 94.42777944624468, 88.00889778562629, 82.42738996800489, 77.36945848679288, 72.51432740597694, 67.16802813603726, 59.680364087360054, 53.70227835286033, 39.3349610981518, 27.019234331100495, 78.2487269939698, 106.60155772942278, 101.62969213287178, 96.78639255413412, 92.41551491021015, 88.35642667499422, 84.37300954215712, 79.98664214688654, 73.69282233904106, 62.519634833814564, 56.13209148368856, 112.96141562939138, 107.18836345962657, 101.41205490254085, 96.58974920002372, 92.48155378003506, 88.82961461115696, 85.29429632368175, 80.89846763825477, 72.6763650433376, 58.36400128577955, 37.061614215373055, 27.043062784568857, 44.94305007375713, 93.31456947636863, 99.92036240529481, 99.13365640357536, 97.5923606182189, 95.84680670284916, 93.54562072858747, 88.78553849825002, 77.31564425822964, 61.84506345011873, 55.39729512282081, 89.62406546585594, 103.49374251543779, 102.32173428631333, 100.30991062708318, 98.53346061622838, 96.90490621021749, 94.34587794741005, 87.00550473963426, 52.40597097901951, 32.81484810916062, 24.87112493842804, 24.896672043508843, 37.94360145915025, 90.1532313908677, 102.95880349072226, 104.42216381637328, 104.93318425959148, 102.82405137959404, 92.3759251957175, 75.19414549835221, 60.28412219524678, 50.3865348002942, 48.00593117892994, 77.74957509046233, 104.63155897251308, 106.15610890397716, 106.7504783226848, 106.53526810000146, 100.87616416714289, 47.822666017586236, 33.479775064909376, 25.95850588011139, 21.43730432182543, 18.40250223414825, 16.01564917374557, 107.56728119209683, 112.71402255481043, 114.30169794675344, 106.44562280961168, 89.49263508760367, 73.30360676754769, 60.718535672973886, 51.04158417188622, 43.364556130091245, 36.9732639237946, 31.560745809757723, 113.81800140679279, 116.46430675771244, 113.33150627710162, 53.591309254095506, 41.443596886393784, 34.35105722297754, 29.56389200624264, 26.286259881879815, 25.311697195314526, 47.697158081407295, 120.21498509057884, 117.77738404420843, 102.76992779246312, 87.03370333717143, 74.26736152364255, 64.12220129190338, 55.86019320710017, 48.96762141356082, 43.3988720174068, 43.88104585335325, 117.80823703890286, 123.09116687601342, 68.0880097359415, 54.778896548691684, 46.97743495036504, 41.434897166965875, 37.294415767913385, 35.1982007718779, 55.02198677775101, 124.51575433296416, 113.03152639747624, 98.9695520677256, 87.16493989169697, 77.55931081985199, 69.56041976557444, 62.708671321997244, 56.729788417251925, 51.72254172896499, 52.03642234631417, 126.80056123115361, 85.81274842231666, 69.66794652221928, 60.572301475307185, 53.874180261929304, 48.117198494436, 42.7361164469778, 66.27498625186931, 119.18443717375995, 107.38974381279948, 97.37241676420444, 89.13554459074241, 82.16559015667546, 76.04899962857046, 70.47661746989445, 65.15737095587713, 59.62646019906577, 55.24048007392827, 102.07137278790285, 83.32651682403667, 73.23435539595015, 65.33398033847567, 56.71175046729205, 44.91203827633524, 87.498691175166, 111.03602710328552, 103.74816823922676, 97.56635303473168, 92.3128567774802, 87.6642598644038, 83.3401714965592, 78.98104017477715, 73.65233071508261, 64.7659545891131, 114.04131345013009, 94.51971239598205, 84.20897238678258, 74.07535386155904, 59.2405567025749, 44.412165474474314, 58.85336802398223, 101.12424656688228, 101.65989828359906, 99.17527678024281, 96.6685091705854, 94.29735374542477, 91.79366203071824, 88.01711406118537, 79.43424468911162, 121.14191058128503, 103.53244854778936, 92.50415872484143, 75.91184027055033, 56.32810996787382, 42.81878724204186, 39.136053211335124, 59.419343002621225, 97.73750827132602, 102.32789141106093, 102.72929162585528, 102.6912249752387, 101.34772428256301, 94.1903284521765, 124.97101211683518, 110.35537059334531, 93.80047890402348, 72.03448045993524, 54.56538343767609, 42.718116693867316, 34.82833216419907, 29.780050876462337, 29.460280914705066, 108.2616494159985, 110.85412928985363, 112.4803065377584, 107.86901245271817, 127.2205472460058, 110.98068122419127, 89.37491214816325, 70.6017108376069, 56.961680751434415, 47.08559811057257, 39.681048824447345, 33.97941931208506, 30.193259919383053, 49.91137038199041, 118.7601374668738, 118.96437466396752, 126.94820675908693, 106.02341791165082, 87.60640295828892, 73.65371535581666, 63.137314097426604, 54.95397548920828, 48.387834753157016, 43.10796500613593, 39.73310498867852, 54.176402724598034, 125.32040617002683, 122.54046337642187, 103.33122927926433, 89.81214652302405, 79.54873364307615, 71.32142710337624, 64.41009699183367, 58.36297446692978, 52.89027722733086, 48.059198325568886, 63.89158160741205, 119.83231590649974, 103.94404642461302, 93.99738524146635, 86.40495585881773, 80.00062996826053, 74.18454527533189, 68.44703982627748, 61.89157598416027, 52.52398910663996, 118.6377847759437, 105.6608386001364, 98.51342238048522, 93.25645744192964, 88.66879170896163, 83.98233376994949, 77.84571072379055, 67.18938682276307, 108.81748675966179, 106.35655313264142, 102.83295057388045, 100.24489169890892, 97.74489168073332, 93.56798509442577, 83.29275498789814, 65.01966387205287, 89.91415601748552, 107.7148098599803, 108.07751178008033, 107.16540077538541, 99.17328716277297, 48.585926148032016, 25.14807290810767, 103.64671613082584, 116.05268501718031, 112.69866454112751, 30.451716576992965, 20.052116259608802, 79.98175036528436, 121.1865107356042, 17.465918760085252, 19.4548077075399, 104.94675899046614, 15.368058279399282, 15.228936793618315, 16.736956830711787];
1 Like

Here it is instantaneous. (Mint 20.1, standard terminal, Julia 1.6 or 1.6.1)

1 Like

An alternative workflow may be to put your long text in a file and include the file.

@Jeff_Emanuel, the problem is the pasting itself, before hitting enter, after hitting enter it is fast:

435-element Vector{Float64}:
 2.4579665e6
 2.4579665e6
 2.4579665e6
 ⋮
 2.4593165e6
 2.4593165e6
 2.4593665e6

I realized that and deleted my post.

1 Like

@lmiq, thanks. This might be another great Windows feature… Tested also launching the REPL from the latest Microsoft PowerShell as per this post instructions, but there was no improvement.

Instantaneous in iTerm2 as well (macOS 11.2.3, Julia 1.6).

1 Like

This could be due to interaction with OhMyREPL.jl and absence of bracket-pasting in Windows, see e.g. Parsing of functions really slow - #7 by kristoffer.carlsson (this of course assumes that you are using OhMyREPL.jl).

1 Like

@tchr, thank you. OMR was indeed being used but after disabling it from startup.jl and launching the REPL again, pasting the 3 variables above still seems to take forever (>20 s).

NB: regarding the VS Code CTRL + ENTER issue, disabling OhMyREPL fixes it, thank you!

There is also the clipboard() function

1 Like

@sefffal, that is indeed fast but clipboard() pastes the example as strings into the REPL that need to be parsed afterwards.

NB: tested in Android phone’s linux Julia 1.6.0 pasting the first variable MST in the assignment above into the REPL and it was practically instantaneous.

Ah right, I left this part out.
It can be combined with parse and eval to execute the code. Something like this:

eval(Meta.parse(clipboard()))

I usually have that in my REPL history for exactly this use case.

Actually, I have a patch that lets clipboard work on WSL2 on Windows I should probably contribute upstream at some point.

1 Like

@sefffal, the parse command provided works fine for a single variable assignment but it does not seem to do the job for the whole code block with 3 assignments? See error below.

NB: added semi-colons at the end of each variable assignment in example

julia> eval(Meta.parse(clipboard()))
ERROR: Base.Meta.ParseError("extra token after end of expression")
Stacktrace:
 [1] parse(str::String; raise::Bool, depwarn::Bool)
   @ Base.Meta .\meta.jl:263
 [2] parse(str::String)
   @ Base.Meta .\meta.jl:258
 [3] top-level scope
   @ REPL[4]:1

I guess you can use this:

eval(Meta.parse("begin;"*clipboard()*";end"))

Or you could make a short function for it to use whenever you want to paste some code:

runpaste() = eval(Meta.parse("begin;"*clipboard()*";end"))
1 Like

@sefffal, excellent. Thank you! Added your function to the startup.jl, while no better Windows 10 terminal is available.

1 Like

I posted an issue in OhMyREPL, because it’s even worst with OhMyREPL.
And a possible fix using clipboard but it’s probably not a great way of doing it, it should probably rather be fixed in base Julia

Meanwhile I added this to my startup file, it enables Ctrl+V as the “clipboard()” paste (“normal” paste is Ctrl+Shift+V for me):

using OhMyREPL
Base.active_repl.interface = REPL.setup_interface(Base.active_repl; extra_repl_keymap = Dict{Any,Any}(
      "^V" => (s, data, c) -> (REPL.LineEdit.edit_insert(REPL.LineEdit.buffer(s), REPL.InteractiveUtils.clipboard()); OhMyREPL.Prompt.rewrite_with_ANSI(s))
))
1 Like