# Latest

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

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

**Page:** 1574

---

## [Any Packages for access Google spreadsheet? (gspread, oauth2client)](https://discourse.julialang.org/t/any-packages-for-access-google-spreadsheet-gspread-oauth2client/50139)

<div class="topic-metadata">

**Author:** [@nuclear718](https://discourse.julialang.org/u/nuclear718)\
**Replies:** 4\
**Last updated:** [November 14, 2020, 1:26pm UTC](https://discourse.julialang.org/t/any-packages-for-access-google-spreadsheet-gspread-oauth2client/50139 "2020-11-14T13:26:23Z")

</div>

Do we have any packages can access google spreadsheet ? In python field, there are two packages (gspread, oauth2client) can help user to access google spreadsheet quite easy. But I can not find out any packages for th…

---

## [Merge two dataframes together](https://discourse.julialang.org/t/merge-two-dataframes-together/50137)

<div class="topic-metadata">

**Author:** [@lorrp1](https://discourse.julialang.org/u/lorrp1)\
**Replies:** 1\
**Last updated:** [November 14, 2020, 12:18pm UTC](https://discourse.julialang.org/t/merge-two-dataframes-together/50137 "2020-11-14T12:18:09Z")

</div>

Hello, im trying merging or joining 2 dataframe on the same index. i have just checked this page Joins · DataFrames.jl and it seems all the join require the name of a column, but id like to use the index instead of colu…

---

## [Teaching students to code](https://discourse.julialang.org/t/teaching-students-to-code/49927)

<div class="topic-metadata">

**Author:** [@anon60034542](https://discourse.julialang.org/u/anon60034542)\
**Replies:** 26\
**Last updated:** [November 14, 2020, 11:37am UTC](https://discourse.julialang.org/t/teaching-students-to-code/49927 "2020-11-14T11:37:21Z")

</div>

I’m sure at some point you’ve have read or heard about teaching students to write code as early as high school. In Chicago, they almost made it a requirement for your high school diploma. Microsoft also has the Hack the …

---

## [Making a Function FASTER!](https://discourse.julialang.org/t/making-a-function-faster/50041)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 26\
**Last updated:** [November 14, 2020, 10:56am UTC](https://discourse.julialang.org/t/making-a-function-faster/50041 "2020-11-14T10:56:49Z")

</div>

Hi everyone. I am new to Julia. Just started a week ago. I am trying to do a Monte Carlo kind of code and these functions are a part of it. function GetTime(ray0, F\_Sp) Snodes=zeros(size(ray0,1),1); #iniciate varia…

---

## [Senior staff Engineer, Photonics Device Modeling(Singapore)](https://discourse.julialang.org/t/senior-staff-engineer-photonics-device-modeling-singapore/50136)

<div class="topic-metadata">

**Author:** [@ghodik](https://discourse.julialang.org/u/ghodik)\
**Replies:** 0\
**Last updated:** [November 14, 2020, 10:32am UTC](https://discourse.julialang.org/t/senior-staff-engineer-photonics-device-modeling-singapore/50136 "2020-11-14T10:32:10Z")

</div>

Just stumbled across this position. They mention Julia as common processing language together with MATLAB and python. ams.com/-/jobno-003756-Singapore

---

## [Why making a change in a copy of a variable changes the original variable?](https://discourse.julialang.org/t/why-making-a-change-in-a-copy-of-a-variable-changes-the-original-variable/50125)

<div class="topic-metadata">

**Author:** [@Nova](https://discourse.julialang.org/u/Nova)\
**Replies:** 16\
**Last updated:** [November 14, 2020, 10:08am UTC](https://discourse.julialang.org/t/why-making-a-change-in-a-copy-of-a-variable-changes-the-original-variable/50125 "2020-11-14T10:08:03Z")

</div>

I am so confused now. Can you explain this to me: aa = \[1,2,3\] bb = aa bb\[1,1\] = 66 Output: bb = 3-element Array{Int64,1}: 66 2 3 aa = 3-element Array{Int64,1}: 66 2 3 I am only making a change in bb, why …

---

## [Pixelwise loss weights in Flux?](https://discourse.julialang.org/t/pixelwise-loss-weights-in-flux/49332)

<div class="topic-metadata">

**Author:** [@tlnagy](https://discourse.julialang.org/u/tlnagy)\
**Replies:** 2\
**Last updated:** [November 14, 2020, 7:48am UTC](https://discourse.julialang.org/t/pixelwise-loss-weights-in-flux/49332 "2020-11-14T07:48:49Z")

</div>

Hi all, I’m interested in implementing a pixel-wise loss function in Flux where I would weight up pixels that separate segments from each other to force the network to learn those pixels preferentially. That is, I want …

---

## [Resources for developing probabilistic models? Not syntax, but conceptually](https://discourse.julialang.org/t/resources-for-developing-probabilistic-models-not-syntax-but-conceptually/49501)

<div class="topic-metadata">

**Author:** [@dcgrigsby](https://discourse.julialang.org/u/dcgrigsby)\
**Replies:** 8\
**Last updated:** [November 14, 2020, 7:16am UTC](https://discourse.julialang.org/t/resources-for-developing-probabilistic-models-not-syntax-but-conceptually/49501 "2020-11-14T07:16:25Z")

</div>

I’m interested in creating probabilistic models. Here’s context to frame my question: I’ve got enough adjacent experience to be able to understand tutorials/examples for simple Turing and Gen models for things like co…

---

## [MethodError with @](https://discourse.julialang.org/t/methoderror-with/50131)

<div class="topic-metadata">

**Author:** [@nebula](https://discourse.julialang.org/u/nebula)\
**Replies:** 3\
**Last updated:** [November 14, 2020, 6:37am UTC](https://discourse.julialang.org/t/methoderror-with/50131 "2020-11-14T06:37:18Z")

</div>

I define a function with multiple parameters, but it throws a MethodError when @. is not the last parameter. Example: julia\> function f(x, y) println(x, y) end f (generic function with 1 method) juli…

---

## [How to change the color of bars in boxplot Gadfly and add minor ticks in the vertical axis?](https://discourse.julialang.org/t/how-to-change-the-color-of-bars-in-boxplot-gadfly-and-add-minor-ticks-in-the-vertical-axis/50126)

<div class="topic-metadata">

**Author:** [@rio](https://discourse.julialang.org/u/rio)\
**Replies:** 0\
**Last updated:** [November 14, 2020, 2:25am UTC](https://discourse.julialang.org/t/how-to-change-the-color-of-bars-in-boxplot-gadfly-and-add-minor-ticks-in-the-vertical-axis/50126 "2020-11-14T02:25:01Z")

</div>

Hi, please how could I change the color of the bars of the boxplot below, from deepskyblue to RGB = \[0,9, 0,4, 0.2\]? And how could I add a few minor ticks in the vertical axis, if possible pointing outside the the plot …

---

## [Correct use of convert](https://discourse.julialang.org/t/correct-use-of-convert/50096)

<div class="topic-metadata">

**Author:** [@Joris\_Pinkse](https://discourse.julialang.org/u/Joris_Pinkse)\
**Replies:** 11\
**Last updated:** [November 13, 2020, 6:11pm UTC](https://discourse.julialang.org/t/correct-use-of-convert/50096 "2020-11-13T18:11:36Z")

</div>

The last line in the program below fails with the error ERROR: LoadError: MethodError: Cannot convert an object of type String to an object of type Symbol The message is misleading, because it certainly can do such a c…

---

## [What is Wolfram Language (mathematica)'s influence on Julia?](https://discourse.julialang.org/t/what-is-wolfram-language-mathematica-s-influence-on-julia/6403)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 29\
**Last updated:** [November 14, 2020, 1:58am UTC](https://discourse.julialang.org/t/what-is-wolfram-language-mathematica-s-influence-on-julia/6403 "2020-11-14T01:58:38Z")

</div>

I read on wikipedia that Julia was influenced by Mathematica. I have never used mathematica so am wondering which part of it influenced Julia? For example I know the list comprehension from Python influenced Julia.

---

## [Neovim and Julia - setup advice?](https://discourse.julialang.org/t/neovim-and-julia-setup-advice/17393)

<div class="topic-metadata">

**Author:** [@opera\_malenky](https://discourse.julialang.org/u/opera_malenky)\
**Replies:** 7\
**Last updated:** [November 14, 2020, 1:44am UTC](https://discourse.julialang.org/t/neovim-and-julia-setup-advice/17393 "2020-11-14T01:44:18Z")

</div>

Anyone here use neovim? I used to have a working setup, but I switched to VS Code for a long time (I needed to use Windows, and it was just easier). When I tried to go back to neovim (still on Windows), I find that neote…

---

## [Using ControlSystems; c2d usage](https://discourse.julialang.org/t/using-controlsystems-c2d-usage/50110)

<div class="topic-metadata">

**Author:** [@panditabupesh](https://discourse.julialang.org/u/panditabupesh)\
**Replies:** 5\
**Last updated:** [November 13, 2020, 10:04pm UTC](https://discourse.julialang.org/t/using-controlsystems-c2d-usage/50110 "2020-11-13T22:04:05Z")

</div>

I am new to Julia. I am trying to use ControlSystems. using ControlSystems sys = tf(1,\[1,1\]) sys\_d = c2d(sys,1) How can I pass zoh or foh as input to c2d? Thanks, Bupesh c2d(sys,1,:zoh) ERROR: MethodError: no metho…

---

## [Coulomb and static friction with ModelingToolkit.jl and DifferentialEquations.jl](https://discourse.julialang.org/t/coulomb-and-static-friction-with-modelingtoolkit-jl-and-differentialequations-jl/49802)

<div class="topic-metadata">

**Author:** [@contradict](https://discourse.julialang.org/u/contradict)\
**Replies:** 14\
**Last updated:** [November 13, 2020, 7:24pm UTC](https://discourse.julialang.org/t/coulomb-and-static-friction-with-modelingtoolkit-jl-and-differentialequations-jl/49802 "2020-11-13T19:24:47Z")

</div>

I am trying to create a model of a damped oscillator with friction. It works fine with only Coulomb friction, but all my attempts to add a static friction term have failed so far. Below is the most promising, but I can’t…

---

## [Compiling error in VScode](https://discourse.julialang.org/t/compiling-error-in-vscode/50109)

<div class="topic-metadata">

**Author:** [@borbs](https://discourse.julialang.org/u/borbs)\
**Replies:** 0\
**Last updated:** [November 13, 2020, 7:01pm UTC](https://discourse.julialang.org/t/compiling-error-in-vscode/50109 "2020-11-13T19:01:11Z")

</div>

Hello! I recently installed the Julia extension on my Visual Studio, I already configured the executablePath to the .exe location in my Appdata, however after getting no errors, when I compile a simple ‘Hello World’ pro…

---

## [ANN: EasyConfig.jl: An easy-to-write JSON-ish data structure](https://discourse.julialang.org/t/ann-easyconfig-jl-an-easy-to-write-json-ish-data-structure/50104)

<div class="topic-metadata">

**Author:** [@joshday](https://discourse.julialang.org/u/joshday)\
**Replies:** 0\
**Last updated:** [November 13, 2020, 6:00pm UTC](https://discourse.julialang.org/t/ann-easyconfig-jl-an-easy-to-write-json-ish-data-structure/50104 "2020-11-13T18:00:23Z")

</div>

Hi all, I’m announcing GitHub - JuliaComputing/EasyConfig.jl: Easy-to-write JSON-like data structure for Julia, which provides some simple improvements for writing nested JSON-like data structures in Julia. My main mot…

---

## [Force installation of a pkg](https://discourse.julialang.org/t/force-installation-of-a-pkg/50089)

<div class="topic-metadata">

**Author:** [@lorrp1](https://discourse.julialang.org/u/lorrp1)\
**Replies:** 2\
**Last updated:** [November 13, 2020, 5:01pm UTC](https://discourse.julialang.org/t/force-installation-of-a-pkg/50089 "2020-11-13T17:01:09Z")

</div>

Hello, im using julia 1.4.2, i have sucefully installed and used ReinforcementLearning.jl then i decided to install Pkg.add("POMDPs"); Pkg.add("QMDP") which caused: Updating \`~/x/Project.toml\` \[a93abf59\] + POMDPs…

---

## [Specify a separate MvNormal for each observation of a variable in Turing](https://discourse.julialang.org/t/specify-a-separate-mvnormal-for-each-observation-of-a-variable-in-turing/50081)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 2\
**Last updated:** [November 13, 2020, 3:32pm UTC](https://discourse.julialang.org/t/specify-a-separate-mvnormal-for-each-observation-of-a-variable-in-turing/50081 "2020-11-13T15:32:42Z")

</div>

This MWE is eq.6 from Kyung et al. which features group-wise scaling of the coefficients to facilitate shrinkage, analogous to the grouped lasso. Pretty sure I just messed up the model specification somehow but I also f…

---

## [Using velocity profiles with DiffEqOperators.jl for 2D convection-diffusion problem](https://discourse.julialang.org/t/using-velocity-profiles-with-diffeqoperators-jl-for-2d-convection-diffusion-problem/49243)

<div class="topic-metadata">

**Author:** [@jarias9](https://discourse.julialang.org/u/jarias9)\
**Replies:** 4\
**Last updated:** [November 13, 2020, 3:51pm UTC](https://discourse.julialang.org/t/using-velocity-profiles-with-diffeqoperators-jl-for-2d-convection-diffusion-problem/49243 "2020-11-13T15:51:13Z")

</div>

Hello all. I am trying to discretize and solve the following PDE using DiffEqOperators.jl \\frac{\\partial C}{\\partial t} = D\\nabla^2 C - \\vec{v} \\cdot \\nabla C + R for solving non-steady convection diffusion of a gene…

---

## [Alternative for \`searchsortedfirst\` for repeatedly searching the same array with concentrated values](https://discourse.julialang.org/t/alternative-for-searchsortedfirst-for-repeatedly-searching-the-same-array-with-concentrated-values/50063)

<div class="topic-metadata">

**Author:** [@malacroi](https://discourse.julialang.org/u/malacroi)\
**Replies:** 6\
**Last updated:** [November 13, 2020, 3:44pm UTC](https://discourse.julialang.org/t/alternative-for-searchsortedfirst-for-repeatedly-searching-the-same-array-with-concentrated-values/50063 "2020-11-13T15:44:51Z")

</div>

I have a sorted array a, of positive integers (related to integer partitions), and need to repeatedly find the first index with a value \>= k for various k uniformly distributed between 1 and a\[end\]. This is exactly the …

---

## [Tuples of CartesianIndex and broadcasting](https://discourse.julialang.org/t/tuples-of-cartesianindex-and-broadcasting/50093)

<div class="topic-metadata">

**Author:** [@Sleort](https://discourse.julialang.org/u/Sleort)\
**Replies:** 9\
**Last updated:** [November 13, 2020, 3:15pm UTC](https://discourse.julialang.org/t/tuples-of-cartesianindex-and-broadcasting/50093 "2020-11-13T15:15:19Z")

</div>

While I can broadcast scalars, like julia\> 1 .+ (2, 3) (3, 4) I can’t do the same with CartesianIndexs: julia\> CartesianIndex(1,1) .+ (CartesianIndex(2,2), CartesianIndex(3,3)) ERROR: iteration is deliberately unsuppo…

---

## [Conditional Branching of Parameter in Turing.jl](https://discourse.julialang.org/t/conditional-branching-of-parameter-in-turing-jl/50019)

<div class="topic-metadata">

**Author:** [@nyubachi](https://discourse.julialang.org/u/nyubachi)\
**Replies:** 10\
**Last updated:** [November 13, 2020, 3:07pm UTC](https://discourse.julialang.org/t/conditional-branching-of-parameter-in-turing-jl/50019 "2020-11-13T15:07:16Z")

</div>

I’m new to the Julia language and to modeling, so I may ask a strange question. When estimating parameters in Turing.jl, is it possible to conditionally branch for one parameter with another variable? For example, in t…

---

## [Increase legend color dash thickness?](https://discourse.julialang.org/t/increase-legend-color-dash-thickness/49179)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 11\
**Last updated:** [November 13, 2020, 1:16pm UTC](https://discourse.julialang.org/t/increase-legend-color-dash-thickness/49179 "2020-11-13T13:16:49Z")

</div>

Hello! How would I go about changing the size of this element marked in yellow: While keeping the same line width as in my plot? Kind regards

---

## [Change layering of plots?](https://discourse.julialang.org/t/change-layering-of-plots/50053)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 2\
**Last updated:** [November 13, 2020, 1:13pm UTC](https://discourse.julialang.org/t/change-layering-of-plots/50053 "2020-11-13T13:13:28Z")

</div>

Hi! Using the plotting tools in Julia, am I able to rearrange which line overlaps another line? Suppose I have a case like this: I want to plot the black vertical lines first, so they appear first in the legend, but…

---

## [Could not download https://pkg.julialang.org/registries and cannot precompile \`CUDA.jl\` + addrspaceptr not defined](https://discourse.julialang.org/t/could-not-download-https-pkg-julialang-org-registries-and-cannot-precompile-cuda-jl-addrspaceptr-not-defined/47344)

<div class="topic-metadata">

**Author:** [@Jaepil\_Lee](https://discourse.julialang.org/u/Jaepil_Lee)\
**Replies:** 4\
**Last updated:** [November 13, 2020, 1:06pm UTC](https://discourse.julialang.org/t/could-not-download-https-pkg-julialang-org-registries-and-cannot-precompile-cuda-jl-addrspaceptr-not-defined/47344 "2020-11-13T13:06:03Z")

</div>

Hi Julia users! As the new version came out and having a LOT of problems installing/precompiling CUDA.jl, CUDAnative.jl, CuArrays.jl, I decided to freshly reinstall Julia 1.5.2. However, I see the specified error messa…

---

## [Storing an array in CSV file](https://discourse.julialang.org/t/storing-an-array-in-csv-file/49824)

<div class="topic-metadata">

**Author:** [@marouane](https://discourse.julialang.org/u/marouane)\
**Replies:** 4\
**Last updated:** [November 13, 2020, 11:44am UTC](https://discourse.julialang.org/t/storing-an-array-in-csv-file/49824 "2020-11-13T11:44:34Z")

</div>

i’m getting confused with this simple working example, for some reason i do not get my array stored in the CSV file: arr=\[0,1\] open("out.csv","a") CSV.write("out.csv",(arr=arr)) CSV.read("out.csv") and as an output i g…

---

## [Wrong order in push! operator](https://discourse.julialang.org/t/wrong-order-in-push-operator/50086)

<div class="topic-metadata">

**Author:** [@FrootLoops](https://discourse.julialang.org/u/FrootLoops)\
**Replies:** 2\
**Last updated:** [November 13, 2020, 10:54am UTC](https://discourse.julialang.org/t/wrong-order-in-push-operator/50086 "2020-11-13T10:54:54Z")

</div>

Hi, I have a problem using the push! operator. It seems that it does not push the next elements at the end of the arrays. Can someone confirm my result: using Distributions e = 1 \* 10^(-2) n\_data = 2 x = rand(Uniform…

---

## [Multiple open PR's for same repo](https://discourse.julialang.org/t/multiple-open-prs-for-same-repo/50085)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 1\
**Last updated:** [November 13, 2020, 10:10am UTC](https://discourse.julialang.org/t/multiple-open-prs-for-same-repo/50085 "2020-11-13T10:10:03Z")

</div>

I have forked a repository, made changed, and put them into a PR. It is currently awaiting approval. I now want to make a PR to the same package for something unrelated to the first PR. Is it possible to have to separa…

---

## [Unable to parse julia date \[duyyyy\]](https://discourse.julialang.org/t/unable-to-parse-julia-date-duyyyy/50080)

<div class="topic-metadata">

**Author:** [@Rodrigo\_Zepeda](https://discourse.julialang.org/u/Rodrigo_Zepeda)\
**Replies:** 6\
**Last updated:** [November 13, 2020, 8:05am UTC](https://discourse.julialang.org/t/unable-to-parse-julia-date-duyyyy/50080 "2020-11-13T08:05:18Z")

</div>

I am trying to read dates in the format such as “09Aug2015”. From my understanding of datetime objects the format is duyyyy. In fact when converting a date to that format it looks quite like what I want: date\_august = D…

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

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