# Latest

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

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

**Page:** 1671

---

## [Threading usage patterns: Worker pools for Agents.jl and SQLite.jl](https://discourse.julialang.org/t/threading-usage-patterns-worker-pools-for-agents-jl-and-sqlite-jl/44232)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 1\
**Last updated:** [August 4, 2020, 2:02pm UTC](https://discourse.julialang.org/t/threading-usage-patterns-worker-pools-for-agents-jl-and-sqlite-jl/44232 "2020-08-04T14:02:45Z")

</div>

I’ve got some code where I spawn off a thread to handle SQLite interaction, and then spawn off 4 threads to handle running Agents.jl simulations. My main function then goes and grabs a simulation description Tuple, put!…

---

## [PackageCompiler fails on example, windows/mingw](https://discourse.julialang.org/t/packagecompiler-fails-on-example-windows-mingw/44210)

<div class="topic-metadata">

**Author:** [@smthzch](https://discourse.julialang.org/u/smthzch)\
**Replies:** 1\
**Last updated:** [August 4, 2020, 2:36pm UTC](https://discourse.julialang.org/t/packagecompiler-fails-on-example-windows-mingw/44210 "2020-08-04T14:36:48Z")

</div>

I am getting an error from mingw of missing files when running create\_app on the demo application for PackageCompiler found MyApp Specifically: julia\> using PackageCompiler julia\> create\_app("MyApp", "MyCompiledApp") …

---

## [VS code extension on macos](https://discourse.julialang.org/t/vs-code-extension-on-macos/44244)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 19\
**Last updated:** [August 4, 2020, 2:05pm UTC](https://discourse.julialang.org/t/vs-code-extension-on-macos/44244 "2020-08-04T14:05:48Z")

</div>

Now that Juno will not be developed anymore I’m trying to switch to using VS Code (the extension) on VS Code (the editor) (this is why I support renaming the extension :slight\_smile: ). I’m trying to follow the tutorial …

---

## [Fresh julia 1.5 install and turing error](https://discourse.julialang.org/t/fresh-julia-1-5-install-and-turing-error/44255)

<div class="topic-metadata">

**Author:** [@spinkney](https://discourse.julialang.org/u/spinkney)\
**Replies:** 3\
**Last updated:** [August 4, 2020, 1:28pm UTC](https://discourse.julialang.org/t/fresh-julia-1-5-install-and-turing-error/44255 "2020-08-04T13:28:04Z")

</div>

Just installed Julia 1.5 on macbook pro running catalina 10.15.6. I did import Pkg; Pkg.add("Turing") along with StatsPlots and Random. I then tried the demo in the turing manual and get an error right away: julia\> usin…

---

## [Stochastic Differential Equations -- basic question](https://discourse.julialang.org/t/stochastic-differential-equations-basic-question/44200)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 7\
**Last updated:** [August 4, 2020, 1:26pm UTC](https://discourse.julialang.org/t/stochastic-differential-equations-basic-question/44200 "2020-08-04T13:26:20Z")

</div>

I’m making my first attempt of Stochastic Differential Equations using a SIR model, and follow the stochastic formulation described in Keeling and Rohani (2008): Modeling Infectious Diseases in Humans and Animals, Prince…

---

## [Module to use Int32](https://discourse.julialang.org/t/module-to-use-int32/43389)

<div class="topic-metadata">

**Author:** [@lewis](https://discourse.julialang.org/u/lewis)\
**Replies:** 14\
**Last updated:** [August 4, 2020, 12:26pm UTC](https://discourse.julialang.org/t/module-to-use-int32/43389 "2020-08-04T12:26:21Z")

</div>

I have a discrete event simulation model in which all outcome values are integer. Currently, it defaults to Int64. Let’s say I want that to be Int32 (or even Int16) as outcome values must always be well under 2e9. Int ar…

---

## [Summing an array does not return type that matches eltype of the array](https://discourse.julialang.org/t/summing-an-array-does-not-return-type-that-matches-eltype-of-the-array/44199)

<div class="topic-metadata">

**Author:** [@lewis](https://discourse.julialang.org/u/lewis)\
**Replies:** 4\
**Last updated:** [August 4, 2020, 12:25pm UTC](https://discourse.julialang.org/t/summing-an-array-does-not-return-type-that-matches-eltype-of-the-array/44199 "2020-08-04T12:25:21Z")

</div>

This seems strange to me: julia\> typeof(sum(ones(Int32,3,4))) Int64 Shouldn’t the result be type Int32? This seems related to Allow to specify the result type of a sum #5311, which was closed way back in 2016. You can…

---

## [Tabular data visualisation in VS Code](https://discourse.julialang.org/t/tabular-data-visualisation-in-vs-code/44193)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [August 4, 2020, 11:02am UTC](https://discourse.julialang.org/t/tabular-data-visualisation-in-vs-code/44193 "2020-08-04T11:02:27Z")

</div>

Hello, which are the options to work/visualise tabular data in VS Code ? In Atom I was using TableView.jl, but it doesn’t seem to work in VS Code. I saw that VS Code has a “native” way to display tabular data (vscodedi…

---

## [Question about my data](https://discourse.julialang.org/t/question-about-my-data/44237)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 23\
**Last updated:** [August 4, 2020, 10:20am UTC](https://discourse.julialang.org/t/question-about-my-data/44237 "2020-08-04T10:20:58Z")

</div>

using CSV,Clustering,Statistics,DataFrames,TimeSeries,MarketData data=CSV.read("E:\\\\测试数据\\\\huizong15min.csv") heping\_1MX\_V\_35kV=convert(Array,data\[:,3\]) xiangshan\_1MX\_V\_35kV=convert(Array,data\[:,4\]) dafeng\_1MX\_V\_110kV=co…

---

## [Research Associate in Stochastic Rounding Algorithms for High-Performance Numerical Linear Algebra](https://discourse.julialang.org/t/research-associate-in-stochastic-rounding-algorithms-for-high-performance-numerical-linear-algebra/44243)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 0\
**Last updated:** [August 4, 2020, 10:12am UTC](https://discourse.julialang.org/t/research-associate-in-stochastic-rounding-algorithms-for-high-performance-numerical-linear-algebra/44243 "2020-08-04T10:12:43Z")

</div>

https://www.indeed.co.uk/viewjob?jk=31a411b11bee504f This post provides an exciting opportunity to work with Professor Nick Higham in the Numerical Linear Algebra Group (https://nla-group.org) at the University of Manch…

---

## [Problem with the xticks property when saving a plot, which worked a few days ago](https://discourse.julialang.org/t/problem-with-the-xticks-property-when-saving-a-plot-which-worked-a-few-days-ago/44207)

<div class="topic-metadata">

**Author:** [@wg030](https://discourse.julialang.org/u/wg030)\
**Replies:** 1\
**Last updated:** [August 4, 2020, 10:12am UTC](https://discourse.julialang.org/t/problem-with-the-xticks-property-when-saving-a-plot-which-worked-a-few-days-ago/44207 "2020-08-04T10:12:36Z")

</div>

Hey guys, I have a problem with a piece of plotting code, that previously worked like a charm, but creates an error due to some of the latest updates now. Here is a MWE: using Plots using PyPlot x = 0:100 y = x pypl…

---

## [Append rows to a JuliaDB table on disk](https://discourse.julialang.org/t/append-rows-to-a-juliadb-table-on-disk/44071)

<div class="topic-metadata">

**Author:** [@robsmith11](https://discourse.julialang.org/u/robsmith11)\
**Replies:** 1\
**Last updated:** [August 4, 2020, 9:33am UTC](https://discourse.julialang.org/t/append-rows-to-a-juliadb-table-on-disk/44071 "2020-08-04T09:33:38Z")

</div>

I have streaming structured data that I’d like to write to disk either row-by-row or with a small amount of buffering. Is JuliaDB appropriate for this? I ultimately will want to do some data manipulation on the resulti…

---

## [Compare permutaion of two numbers efficiently?](https://discourse.julialang.org/t/compare-permutaion-of-two-numbers-efficiently/44195)

<div class="topic-metadata">

**Author:** [@Seif\_Shebl](https://discourse.julialang.org/u/Seif_Shebl)\
**Replies:** 32\
**Last updated:** [August 4, 2020, 9:12am UTC](https://discourse.julialang.org/t/compare-permutaion-of-two-numbers-efficiently/44195 "2020-08-04T09:12:20Z")

</div>

I’m trying to compare two numbers to check if they have identical digits but in different orders. I extracted the digits and sorted them, then I compare the two extracted vectors to check equality. This works fine, but I…

---

## [Choose a tool for curve fitting out of all available](https://discourse.julialang.org/t/choose-a-tool-for-curve-fitting-out-of-all-available/44202)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 2\
**Last updated:** [August 4, 2020, 7:51am UTC](https://discourse.julialang.org/t/choose-a-tool-for-curve-fitting-out-of-all-available/44202 "2020-08-04T07:51:59Z")

</div>

Hello! I’m relatively new to Julia. This year I saw the JuliaCon and I’m trying to use it for my Master Thesis. I need to fit data from a simulation to a Foster series but I can’t really choose the best tool available i…

---

## [Does Julia has bitwise circular shift?](https://discourse.julialang.org/t/does-julia-has-bitwise-circular-shift/44220)

<div class="topic-metadata">

**Author:** [@Lucas\_Queiroz](https://discourse.julialang.org/u/Lucas_Queiroz)\
**Replies:** 6\
**Last updated:** [August 4, 2020, 7:28am UTC](https://discourse.julialang.org/t/does-julia-has-bitwise-circular-shift/44220 "2020-08-04T07:28:09Z")

</div>

This documentation page lists the logical and arithmetic shift, as well as the bitwise NOT, AND, OR and XOR. However, the circular shift is absent. Does Julia has a bitwise circular shift? If yes, where can I find it’s …

---

## [\[ANN\] SPICE.jl: A wrapper for NASA‘s SPICE toolkit](https://discourse.julialang.org/t/ann-spice-jl-a-wrapper-for-nasa-s-spice-toolkit/23381)

<div class="topic-metadata">

**Author:** [@helgee](https://discourse.julialang.org/u/helgee)\
**Replies:** 7\
**Last updated:** [August 4, 2020, 6:32am UTC](https://discourse.julialang.org/t/ann-spice-jl-a-wrapper-for-nasa-s-spice-toolkit/23381 "2020-08-04T06:32:11Z")

</div>

Hi y‘all, Finally I am happy to announce the SPICE.jl wrapper for the SPICE toolkit which is provided by NASA’s Navigation and Ancillary Information Facility (NAIF) and provides functionality to read SPICE data files an…

---

## [What is the equivalent of “patch” function in MATLAB in Julia?](https://discourse.julialang.org/t/what-is-the-equivalent-of-patch-function-in-matlab-in-julia/44229)

<div class="topic-metadata">

**Author:** [@Aquaman](https://discourse.julialang.org/u/Aquaman)\
**Replies:** 1\
**Last updated:** [August 4, 2020, 5:23am UTC](https://discourse.julialang.org/t/what-is-the-equivalent-of-patch-function-in-matlab-in-julia/44229 "2020-08-04T05:23:18Z")

</div>

what is the equivalent of “patch” function in MATLAB in Julia?

---

## [Pixel plots in GR.jl](https://discourse.julialang.org/t/pixel-plots-in-gr-jl/44184)

<div class="topic-metadata">

**Author:** [@LakshyaKhatri](https://discourse.julialang.org/u/LakshyaKhatri)\
**Replies:** 2\
**Last updated:** [August 4, 2020, 5:05am UTC](https://discourse.julialang.org/t/pixel-plots-in-gr-jl/44184 "2020-08-04T05:05:51Z")

</div>

Hello everyone, I am trying to plot a pixel series in GR which might look something like this: In pyplot it is achieved by adding a ',' in the plot command (something like: ax.plot(x, y, ',')). In GR, I am currently …

---

## [Surprising capture boxing behavior in closure](https://discourse.julialang.org/t/surprising-capture-boxing-behavior-in-closure/20254)

<div class="topic-metadata">

**Author:** [@NHDaly](https://discourse.julialang.org/u/NHDaly)\
**Replies:** 9\
**Last updated:** [August 4, 2020, 3:51am UTC](https://discourse.julialang.org/t/surprising-capture-boxing-behavior-in-closure/20254 "2020-08-04T03:51:31Z")

</div>

Hi, I was surprised by the boxing behavior of closure capture, and I’d love to hear about its motivation and discuss whether it’s still relevant. I came across this when I noticed how it can introduce a race condition i…

---

## [Why do we need both Base.view and Base.@view?](https://discourse.julialang.org/t/why-do-we-need-both-base-view-and-base-view/44219)

<div class="topic-metadata">

**Author:** [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)\
**Replies:** 13\
**Last updated:** [August 4, 2020, 2:54am UTC](https://discourse.julialang.org/t/why-do-we-need-both-base-view-and-base-view/44219 "2020-08-04T02:54:57Z")

</div>

There seems to be a big overlap in functionality of Base.view and Base.@view : a = collect(1:9) b = view(a, 3:6) c = @view a\[3:6\] b\[1\] = 0 c\[1\] = 3 b .= 7 c .= 1 sum(b) sum(c) Why do we need both?

---

## [Using SymPy.jl inside a module](https://discourse.julialang.org/t/using-sympy-jl-inside-a-module/44191)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 1\
**Last updated:** [August 4, 2020, 2:47am UTC](https://discourse.julialang.org/t/using-sympy-jl-inside-a-module/44191 "2020-08-04T02:47:33Z")

</div>

I got the ERROR: ArgumentError: ref of NULL PyObject when I call a function defined inside a module that is using SymPy. seems like the situation is rather similar to this. Unfortunately I have difficulties to transform…

---

## [Cleaning up old versions](https://discourse.julialang.org/t/cleaning-up-old-versions/44215)

<div class="topic-metadata">

**Author:** [@raoulg](https://discourse.julialang.org/u/raoulg)\
**Replies:** 3\
**Last updated:** [August 3, 2020, 11:26pm UTC](https://discourse.julialang.org/t/cleaning-up-old-versions/44215 "2020-08-03T23:26:10Z")

</div>

I’m kind of new to Julia and just updated to version 1.5 I noticed that my packages need to be reinstalled (eg \] add Plots). If I go to ~/.julia, there is almost 2GBs of data, mainly in ~/.julia/conda and ~/.julia/pack…

---

## [Animate Plot with Many Frames Quickly with Makie](https://discourse.julialang.org/t/animate-plot-with-many-frames-quickly-with-makie/44094)

<div class="topic-metadata">

**Author:** [@tross](https://discourse.julialang.org/u/tross)\
**Replies:** 4\
**Last updated:** [August 3, 2020, 10:35pm UTC](https://discourse.julialang.org/t/animate-plot-with-many-frames-quickly-with-makie/44094 "2020-08-03T22:35:51Z")

</div>

I have a data set where thousands of points are moving around over time with thousands of time steps. The problem I am having is that it is taking a very long time to generate the movie. I’ve been making the movies with…

---

## [Problem using "diffeqpy" package on Colab](https://discourse.julialang.org/t/problem-using-diffeqpy-package-on-colab/44216)

<div class="topic-metadata">

**Author:** [@m4hdiattar](https://discourse.julialang.org/u/m4hdiattar)\
**Replies:** 0\
**Last updated:** [August 3, 2020, 8:44pm UTC](https://discourse.julialang.org/t/problem-using-diffeqpy-package-on-colab/44216 "2020-08-03T20:44:12Z")

</div>

I’m unable to import the “diffeqpy” which is the python base pack for the DifferentialEquation.jl on Google Colab. can anyone help? this is the error I receive trying to " from diffeqpy import de" : -------------------…

---

## [@Distributed: On worker 2 UndefVarError {{Module}}](https://discourse.julialang.org/t/distributed-on-worker-2-undefvarerror-module/42773)

<div class="topic-metadata">

**Author:** [@ok\_ok](https://discourse.julialang.org/u/ok_ok)\
**Replies:** 8\
**Last updated:** [July 14, 2020, 10:07am UTC](https://discourse.julialang.org/t/distributed-on-worker-2-undefvarerror-module/42773 "2020-07-14T10:07:29Z")

</div>

Hello, i want to run a for loop in parallel but using Threads.threads just made the Programm slower so i wanted to try @distributed module MyModule export start, loop\_inner, rec function start() return rec(...) en…

---

## [Recommendation: books for beginners](https://discourse.julialang.org/t/recommendation-books-for-beginners/44050)

<div class="topic-metadata">

**Author:** [@yarnabrina](https://discourse.julialang.org/u/yarnabrina)\
**Replies:** 8\
**Last updated:** [August 1, 2020, 3:43pm UTC](https://discourse.julialang.org/t/recommendation-books-for-beginners/44050 "2020-08-01T15:43:59Z")

</div>

Hi! I’m planning to start learning Julia. But I don’t really have a programming background. I have used R for college assignments, and a little bit of Python. Based on previous experiences, I’ve come to realise that vid…

---

## [Unable to debug code](https://discourse.julialang.org/t/unable-to-debug-code/44208)

<div class="topic-metadata">

**Author:** [@Roy\_Toren](https://discourse.julialang.org/u/Roy_Toren)\
**Replies:** 0\
**Last updated:** [August 3, 2020, 5:10pm UTC](https://discourse.julialang.org/t/unable-to-debug-code/44208 "2020-08-03T17:10:22Z")

</div>

Hi everyone, I am new to the community. I started a sample project, working on 3D objects and it has worked terrific so far. I wanted to debug the code to start dealing with manipulation of the loaded 3D object but it …

---

## [A Python rant about types](https://discourse.julialang.org/t/a-python-rant-about-types/43294)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 22\
**Last updated:** [July 24, 2020, 4:47pm UTC](https://discourse.julialang.org/t/a-python-rant-about-types/43294 "2020-07-24T16:47:50Z")

</div>

Permit me a Python rant. with relevance to Julia. I have been stuck for over two days on running a Python script written by a colleague. The script runs the system command ‘lscpu’ and split the output into lines then p…

---

## [Aliasing structs breaks type stability](https://discourse.julialang.org/t/aliasing-structs-breaks-type-stability/44206)

<div class="topic-metadata">

**Author:** [@louie4825](https://discourse.julialang.org/u/louie4825)\
**Replies:** 2\
**Last updated:** [August 3, 2020, 5:02pm UTC](https://discourse.julialang.org/t/aliasing-structs-breaks-type-stability/44206 "2020-08-03T17:02:33Z")

</div>

Hi. I’ve defined some parametric structs like those defined in the Performance Tips section of the Julia manual. Since some of the structs had quite long names, I decided to alias them. I was struggling to wrap my head …

---

## [Flux model-zoo: Error running vae\_mnist.jl](https://discourse.julialang.org/t/flux-model-zoo-error-running-vae-mnist-jl/44076)

<div class="topic-metadata">

**Author:** [@v-i-s-h](https://discourse.julialang.org/u/v-i-s-h)\
**Replies:** 3\
**Last updated:** [August 3, 2020, 4:52pm UTC](https://discourse.julialang.org/t/flux-model-zoo-error-running-vae-mnist-jl/44076 "2020-08-03T16:52:00Z")

</div>

Hi, I am trying to run the vae\_mnist.jl script from model zoo (https://github.com/FluxML/model-zoo/blob/master/vision/vae\_mnist/vae\_mnist.jl). However, I am getting the following error. ( I use optirun to enable GPU, bu…

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

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