# Latest

**URL:** https://discourse.julialang.org/latest.md?page=1121

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 1122

---

## [Error in running a tutor model](https://discourse.julialang.org/t/error-in-running-a-tutor-model/76405)

<div class="topic-metadata">

**Author:** [@tonyhur](https://discourse.julialang.org/u/tonyhur)\
**Replies:** 2\
**Last updated:** [February 14, 2022, 5:33pm UTC](https://discourse.julialang.org/t/error-in-running-a-tutor-model/76405 "2022-02-14T17:33:20Z")

</div>

I’m trying to run the “urban planning problem” at https://jump.dev/JuMP.jl/stable/tutorials/linear/urban\_plan/. I installed Julia 1.5.3, JuMP v0.21.10, Test, and GLPK v0.14.14. When running I get an error: Test threw…

---

## [Molecular mass of proteins and peptides](https://discourse.julialang.org/t/molecular-mass-of-proteins-and-peptides/76439)

<div class="topic-metadata">

**Author:** [@tp2750](https://discourse.julialang.org/u/tp2750)\
**Replies:** 5\
**Last updated:** [February 14, 2022, 5:10pm UTC](https://discourse.julialang.org/t/molecular-mass-of-proteins-and-peptides/76439 "2022-02-14T17:10:53Z")

</div>

Is there a package that can compute the molecular mass based on an amino acid sequence? MolecularGraph has the machinery, but that appears to be focused on small molecules. I can’t find a method in BioSequences

---

## [Has Anyone Used RCall with \`renv\`?](https://discourse.julialang.org/t/has-anyone-used-rcall-with-renv/76310)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 2\
**Last updated:** [February 14, 2022, 4:45pm UTC](https://discourse.julialang.org/t/has-anyone-used-rcall-with-renv/76310 "2022-02-14T16:45:20Z")

</div>

Hi all! Just was wondering if anyone has had any luck with using renv with RCall. In R, I use renv to manage my package versions per project (very similar to lock files in Julia) and usually you can activate renv easil…

---

## [Behavior of \`Threads.@threads for\` loop](https://discourse.julialang.org/t/behavior-of-threads-threads-for-loop/76042)

<div class="topic-metadata">

**Author:** [@PeterSimon](https://discourse.julialang.org/u/PeterSimon)\
**Replies:** 30\
**Last updated:** [February 14, 2022, 4:28pm UTC](https://discourse.julialang.org/t/behavior-of-threads-threads-for-loop/76042 "2022-02-14T16:28:10Z")

</div>

I have code that assumes that each iteration of a Threads@threads for loop is run on a single thread. I.e., that one can use Threads.threadid() at the beginning of the loop to determine which thread is executing that lo…

---

## [Read HDF5 with variable number of keys](https://discourse.julialang.org/t/read-hdf5-with-variable-number-of-keys/35758)

<div class="topic-metadata">

**Author:** [@met-j](https://discourse.julialang.org/u/met-j)\
**Replies:** 3\
**Last updated:** [February 14, 2022, 4:20pm UTC](https://discourse.julialang.org/t/read-hdf5-with-variable-number-of-keys/35758 "2022-02-14T16:20:49Z")

</div>

I get HDF5 files of a measurement. These files are organized like \[key\_lvl1\]\[key\_lvl2\]\[...\]. The structure in the deeper levels is always the same. However, the first key level is a simple counter for the number of mea…

---

## [Solving Nonlinear constrained optimization](https://discourse.julialang.org/t/solving-nonlinear-constrained-optimization/75982)

<div class="topic-metadata">

**Author:** [@AhmedAlreweny](https://discourse.julialang.org/u/AhmedAlreweny)\
**Replies:** 6\
**Last updated:** [February 14, 2022, 3:37pm UTC](https://discourse.julialang.org/t/solving-nonlinear-constrained-optimization/75982 "2022-02-14T15:37:21Z")

</div>

Hello, I have been recently struggling to solve a NLP in julia. The problem can be written as: min f(x) st c(x)=0 It is important to mention that the objective function is a discretized integrat…

---

## [Filemode() / stat().mode: How to interpret the resulting UInt64-number](https://discourse.julialang.org/t/filemode-stat-mode-how-to-interpret-the-resulting-uint64-number/76213)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 11\
**Last updated:** [February 14, 2022, 3:44pm UTC](https://discourse.julialang.org/t/filemode-stat-mode-how-to-interpret-the-resulting-uint64-number/76213 "2022-02-14T15:44:26Z")

</div>

I wonder how to interpret the output of stat(), one example is the field “mode”. Unfortunately, the documentation is not very helpful for me, how can I transfer this in something like “(-rw-rw-rw-)”, or even more comfor…

---

## [Using dot syntax and Symbols from Python](https://discourse.julialang.org/t/using-dot-syntax-and-symbols-from-python/76368)

<div class="topic-metadata">

**Author:** [@sstroemer](https://discourse.julialang.org/u/sstroemer)\
**Replies:** 4\
**Last updated:** [February 14, 2022, 2:52pm UTC](https://discourse.julialang.org/t/using-dot-syntax-and-symbols-from-python/76368 "2022-02-14T14:52:56Z")

</div>

Is there a convenient way to use functions that make use of the dot syntax, as well as Symbols using juliacall (or alternatively pyjulia)? (Example code utilizing JuMP, after from juliacall import Main as jl) I know I c…

---

## [Allocation related problems](https://discourse.julialang.org/t/allocation-related-problems/76438)

<div class="topic-metadata">

**Author:** [@xspeng](https://discourse.julialang.org/u/xspeng)\
**Replies:** 0\
**Last updated:** [February 14, 2022, 2:46pm UTC](https://discourse.julialang.org/t/allocation-related-problems/76438 "2022-02-14T14:46:01Z")

</div>

Hi, I have a question when I call python bayesian optimization from julia, but my problem is not about bayesian optimization, I think it should be related to memory allocation problems, here is an example that can show t…

---

## [What if there was julia repl on discourse itself?](https://discourse.julialang.org/t/what-if-there-was-julia-repl-on-discourse-itself/76427)

<div class="topic-metadata">

**Author:** [@yewalenikhil65](https://discourse.julialang.org/u/yewalenikhil65)\
**Replies:** 6\
**Last updated:** [February 14, 2022, 2:21pm UTC](https://discourse.julialang.org/t/what-if-there-was-julia-repl-on-discourse-itself/76427 "2022-02-14T14:21:20Z")

</div>

What if there was an Online Julia Repl on discourse itself, so that you could try out suggestions super quick by copy pasting what others are saying? Sorry if i sound too lazy :sweat\_smile:

---

## [Performance of large sparse discrete map problems in DifferentialEquations](https://discourse.julialang.org/t/performance-of-large-sparse-discrete-map-problems-in-differentialequations/76382)

<div class="topic-metadata">

**Author:** [@roryh](https://discourse.julialang.org/u/roryh)\
**Replies:** 8\
**Last updated:** [February 14, 2022, 2:12pm UTC](https://discourse.julialang.org/t/performance-of-large-sparse-discrete-map-problems-in-differentialequations/76382 "2022-02-14T14:12:55Z")

</div>

Hello, I normally deal with dynamics on networks, so I have giant sparse systems of coupled ODE’s. The problem I have at the moment is that for a simple discrete map, a naive implementation is significantly faster than …

---

## [Is it possible to pipe to a function of several variables?](https://discourse.julialang.org/t/is-it-possible-to-pipe-to-a-function-of-several-variables/76393)

<div class="topic-metadata">

**Author:** [@Soldalma](https://discourse.julialang.org/u/Soldalma)\
**Replies:** 10\
**Last updated:** [February 14, 2022, 1:52pm UTC](https://discourse.julialang.org/t/is-it-possible-to-pipe-to-a-function-of-several-variables/76393 "2022-02-14T13:52:23Z")

</div>

In some other languages, like R, some package allows one to insert a call to a function of several variables into a sequence of pipes. This is done by specifying all arguments but one and inserting a . in the place of th…

---

## [How to sandbox Julia code](https://discourse.julialang.org/t/how-to-sandbox-julia-code/76388)

<div class="topic-metadata">

**Author:** [@David\_Sagan](https://discourse.julialang.org/u/David_Sagan)\
**Replies:** 11\
**Last updated:** [February 14, 2022, 1:47pm UTC](https://discourse.julialang.org/t/how-to-sandbox-julia-code/76388 "2022-02-14T13:47:20Z")

</div>

I need to come up with a system for sharing data between different laboratories located around the world. One possibility would be to use something like JSON but since I will be developing the data analysis code in Julia…

---

## [Pluto autosave failed and this pops when I \`cltr+C\`](https://discourse.julialang.org/t/pluto-autosave-failed-and-this-pops-when-i-cltr-c/76433)

<div class="topic-metadata">

**Author:** [@frydaydeep](https://discourse.julialang.org/u/frydaydeep)\
**Replies:** 0\
**Last updated:** [February 14, 2022, 1:44pm UTC](https://discourse.julialang.org/t/pluto-autosave-failed-and-this-pops-when-i-cltr-c/76433 "2022-02-14T13:44:29Z")

</div>

julia\> using Pluto julia\> Pluto.run() \[ Info: Loading... Opening http://localhost:1234/?secret=16szn87g in your default browser... ~ have fun! Press Ctrl+C in this terminal to stop Pluto Updating registry at \`C:\\…

---

## [Vscode how to examine stdout in the debugger](https://discourse.julialang.org/t/vscode-how-to-examine-stdout-in-the-debugger/76378)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 4\
**Last updated:** [February 14, 2022, 12:11pm UTC](https://discourse.julialang.org/t/vscode-how-to-examine-stdout-in-the-debugger/76378 "2022-02-14T12:11:41Z")

</div>

hi all just starting out in julia. Am using vscode and want to examine what the contents of stdout is and can’t figure out how to do it. I’m opening a tcp connection then starting an asynch reader loop that processes t…

---

## [Stacked bar graphs](https://discourse.julialang.org/t/stacked-bar-graphs/18550)

<div class="topic-metadata">

**Author:** [@svpillai](https://discourse.julialang.org/u/svpillai)\
**Replies:** 24\
**Last updated:** [February 14, 2022, 11:29am UTC](https://discourse.julialang.org/t/stacked-bar-graphs/18550 "2022-02-14T11:29:49Z")

</div>

Hello all, I’m quite new to Julia and was a bit lost on how to create Stacked Bar graphs. I’d like to have ideally 8 bars, grouped in pairs. Each of these bars would have 5 stacks that add up to a 100%- this is basically…

---

## [Why won't \`savefig\` work with \`plotly\`?](https://discourse.julialang.org/t/why-wont-savefig-work-with-plotly/76410)

<div class="topic-metadata">

**Author:** [@Soldalma](https://discourse.julialang.org/u/Soldalma)\
**Replies:** 0\
**Last updated:** [February 14, 2022, 10:25am UTC](https://discourse.julialang.org/t/why-wont-savefig-work-with-plotly/76410 "2022-02-14T10:25:16Z")

</div>

I have a program that runs without any problems. When I try to use the Plotly as a backend it generates an error (see at the bottom of this post). I can see 'Plotly and 'PlotlyBase in Project.toml. The command that cau…

---

## [Plots.jl increase spacing along axes](https://discourse.julialang.org/t/plots-jl-increase-spacing-along-axes/76392)

<div class="topic-metadata">

**Author:** [@Rwik\_Dutta](https://discourse.julialang.org/u/Rwik_Dutta)\
**Replies:** 1\
**Last updated:** [February 14, 2022, 10:06am UTC](https://discourse.julialang.org/t/plots-jl-increase-spacing-along-axes/76392 "2022-02-14T10:06:36Z")

</div>

I have made a bar graph using Plots.jl. One of the axes contains String type data. Here are the two things I would like to do: The bars are too close by. I would like to change the “spacing” between values of an axi…

---

## [Problems on Flux.destructure()](https://discourse.julialang.org/t/problems-on-flux-destructure/76398)

<div class="topic-metadata">

**Author:** [@Louis612](https://discourse.julialang.org/u/Louis612)\
**Replies:** 14\
**Last updated:** [February 14, 2022, 9:44am UTC](https://discourse.julialang.org/t/problems-on-flux-destructure/76398 "2022-02-14T09:44:36Z")

</div>

As the figure shown above, I build a LSTM using the code "Chain(LSTM(1,1),LSTM(1,1)) " Then I want to build the network with specific parameters p. code re(p) but it failed and showed above. How to deal with this i…

---

## [Where to ask for a couple of small promotional computational credits for the best students of two courses where I teach?](https://discourse.julialang.org/t/where-to-ask-for-a-couple-of-small-promotional-computational-credits-for-the-best-students-of-two-courses-where-i-teach/76402)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 0\
**Last updated:** [February 14, 2022, 9:44am UTC](https://discourse.julialang.org/t/where-to-ask-for-a-couple-of-small-promotional-computational-credits-for-the-best-students-of-two-courses-where-i-teach/76402 "2022-02-14T09:44:00Z")

</div>

Hi there, I am teaching a course on “Introduction to Scientific Programming and Machine Learning” to a couple of non-CS master students classes in France using a blended learning approach, and I would like to give as a s…

---

## [Plotting Maxwellian](https://discourse.julialang.org/t/plotting-maxwellian/76385)

<div class="topic-metadata">

**Author:** [@CentraCep](https://discourse.julialang.org/u/CentraCep)\
**Replies:** 7\
**Last updated:** [February 14, 2022, 9:28am UTC](https://discourse.julialang.org/t/plotting-maxwellian/76385 "2022-02-14T09:28:58Z")

</div>

I have a list of positive and negative values and a single temperature. I am trying to plot the \[Maxwell-Boltzmann Distribution\]\[1\] using the equation for particles moving in only one direction. m\_e = 9.11E-28 # electro…

---

## [RemoteREPL cannot connect on Windows over SSH](https://discourse.julialang.org/t/remoterepl-cannot-connect-on-windows-over-ssh/76338)

<div class="topic-metadata">

**Author:** [@GHTaarn](https://discourse.julialang.org/u/GHTaarn)\
**Replies:** 1\
**Last updated:** [February 14, 2022, 9:20am UTC](https://discourse.julialang.org/t/remoterepl-cannot-connect-on-windows-over-ssh/76338 "2022-02-14T09:20:48Z")

</div>

I suspect that this is an ssh related problem: I am trying to connect my Windows Laptop to a Julia session on a Linux cloud server using the RemoteREPL package (which uses an ssh tunnel). I started the RemoteREPL server…

---

## [Is there a bug in package DataFramesMeta?](https://discourse.julialang.org/t/is-there-a-bug-in-package-dataframesmeta/76395)

<div class="topic-metadata">

**Author:** [@Soldalma](https://discourse.julialang.org/u/Soldalma)\
**Replies:** 8\
**Last updated:** [February 14, 2022, 8:46am UTC](https://discourse.julialang.org/t/is-there-a-bug-in-package-dataframesmeta/76395 "2022-02-14T08:46:31Z")

</div>

Package DataFramesMeta looks very useful. I gave it a try and some things did not work. The following example, copied from \[Introduction · DataFramesMeta Documentation\], was tried in a new Julia session in an environment…

---

## [Calling Fortran functions that use MPI](https://discourse.julialang.org/t/calling-fortran-functions-that-use-mpi/76394)

<div class="topic-metadata">

**Author:** [@lucifer1004](https://discourse.julialang.org/u/lucifer1004)\
**Replies:** 0\
**Last updated:** [February 14, 2022, 7:36am UTC](https://discourse.julialang.org/t/calling-fortran-functions-that-use-mpi/76394 "2022-02-14T07:36:47Z")

</div>

I have used ccall() a few times, but I wonder what I should do when the callee Fortran function uses MPI itself? Can MPI.jl work in this case?

---

## [Could cuda.jl support @view in Kernel programming](https://discourse.julialang.org/t/could-cuda-jl-support-view-in-kernel-programming/76298)

<div class="topic-metadata">

**Author:** [@FkerYJ](https://discourse.julialang.org/u/FkerYJ)\
**Replies:** 1\
**Last updated:** [February 14, 2022, 7:09am UTC](https://discourse.julialang.org/t/could-cuda-jl-support-view-in-kernel-programming/76298 "2022-02-14T07:09:55Z")

</div>

Is it possible to create a new array by seting an offset parameter indicating how many bytes to add to the base array pointer? To achieve the function of view in Kernel programming

---

## [Erudite Vim - Sensational Vim Configuration](https://discourse.julialang.org/t/erudite-vim-sensational-vim-configuration/76380)

<div class="topic-metadata">

**Author:** [@anon28281882](https://discourse.julialang.org/u/anon28281882)\
**Replies:** 3\
**Last updated:** [February 14, 2022, 6:45am UTC](https://discourse.julialang.org/t/erudite-vim-sensational-vim-configuration/76380 "2022-02-14T06:45:24Z")

</div>

I am aware that it is Valentine’s Day so I might be a little bit biased. (To be frank I don’t think so). I just came by NeoVim configuration written in Lua with a focus on Julia. I just wanted to point your attention to…

---

## [Turing, Zygote, and Interpolations](https://discourse.julialang.org/t/turing-zygote-and-interpolations/76371)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 1\
**Last updated:** [February 14, 2022, 3:16am UTC](https://discourse.julialang.org/t/turing-zygote-and-interpolations/76371 "2022-02-14T03:16:07Z")

</div>

This is a follow up to a previous post I did, in which I thought everything was resolved, but it is not. I want to use Turing with both FFTW and some type of interpolation method. I am trying something of the form: usi…

---

## [Difference between SharedArrays and DistributedArrays](https://discourse.julialang.org/t/difference-between-sharedarrays-and-distributedarrays/60258)

<div class="topic-metadata">

**Author:** [@shce](https://discourse.julialang.org/u/shce)\
**Replies:** 7\
**Last updated:** [February 14, 2022, 2:42am UTC](https://discourse.julialang.org/t/difference-between-sharedarrays-and-distributedarrays/60258 "2022-02-14T02:42:23Z")

</div>

Hello, I am struggling with understanding the difference between SharedArrays and DistributedArrays. I do not understand (I am pretty new to parallelism) what is meant by (from the documentation) Shared Arrays use sy…

---

## [Can you control how indexes are printed when you print a model?](https://discourse.julialang.org/t/can-you-control-how-indexes-are-printed-when-you-print-a-model/76377)

<div class="topic-metadata">

**Author:** [@gleyland](https://discourse.julialang.org/u/gleyland)\
**Replies:** 3\
**Last updated:** [February 13, 2022, 11:33pm UTC](https://discourse.julialang.org/t/can-you-control-how-indexes-are-printed-when-you-print-a-model/76377 "2022-02-13T23:33:07Z")

</div>

Can you control how JuMP prints indexes in print(model) beyond overriding Base.show? If not, this would be a nice, but not super-important feature. Take as an example, an excerpt from the JuMP knapsack example, but ins…

---

## [Migrating from SharedArrays to DistributedArrays](https://discourse.julialang.org/t/migrating-from-sharedarrays-to-distributedarrays/76376)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 0\
**Last updated:** [February 13, 2022, 9:52pm UTC](https://discourse.julialang.org/t/migrating-from-sharedarrays-to-distributedarrays/76376 "2022-02-13T21:52:26Z")

</div>

I have some code that currently works in a shared memory environment with SharedArrays structures that I want to migrate to using DistributedArrays for a multi-node/distributed memory machine. Roughly, the key part of t…

[Previous page](https://discourse.julialang.org/latest.md?page=1120)

[Next page](https://discourse.julialang.org/latest.md?page=1122)
