# Latest

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

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

**Page:** 1695

---

## [Freezing specific parameters in a layer](https://discourse.julialang.org/t/freezing-specific-parameters-in-a-layer/42790)

<div class="topic-metadata">

**Author:** [@quark](https://discourse.julialang.org/u/quark)\
**Replies:** 0\
**Last updated:** [July 9, 2020, 3:39pm UTC](https://discourse.julialang.org/t/freezing-specific-parameters-in-a-layer/42790 "2020-07-09T15:39:08Z")

</div>

Hey! I am new to Julia and I’ve been playing around with Flux library. What I am trying to do now is to freeze specific weights that I want. I found a function that is supposed to do that: delete!(params, model), but wi…

---

## [Understanding better JIT and LLVM in Julia](https://discourse.julialang.org/t/understanding-better-jit-and-llvm-in-julia/42784)

<div class="topic-metadata">

**Author:** [@Fred](https://discourse.julialang.org/u/Fred)\
**Replies:** 3\
**Last updated:** [July 9, 2020, 3:37pm UTC](https://discourse.julialang.org/t/understanding-better-jit-and-llvm-in-julia/42784 "2020-07-09T15:37:58Z")

</div>

Hi, I am not specialist of compilers and I have a few questions about Julia design. 1- Julia is JIT compiled, because this design enable an interactive use in the REPL without the loss of performances of an interpreted…

---

## [Ipopt with JuMP -- Restoration Failure Crashing Julia](https://discourse.julialang.org/t/ipopt-with-jump-restoration-failure-crashing-julia/42753)

<div class="topic-metadata">

**Author:** [@Dominic\_Pazzula](https://discourse.julialang.org/u/Dominic_Pazzula)\
**Replies:** 9\
**Last updated:** [July 9, 2020, 3:13pm UTC](https://discourse.julialang.org/t/ipopt-with-jump-restoration-failure-crashing-julia/42753 "2020-07-09T15:13:18Z")

</div>

I have some code calling Ipopt through JuMP. I’m in the testing phase and have a small and large-ish problem. Small problem runs without issue. The large problem hits a Restoration Failure (ok, I can work to fix that)…

---

## [ODE Parameter Estimation. Simple Local Optimization Example](https://discourse.julialang.org/t/ode-parameter-estimation-simple-local-optimization-example/42741)

<div class="topic-metadata">

**Author:** [@SS2020](https://discourse.julialang.org/u/SS2020)\
**Replies:** 4\
**Last updated:** [July 9, 2020, 2:35pm UTC](https://discourse.julialang.org/t/ode-parameter-estimation-simple-local-optimization-example/42741 "2020-07-09T14:35:46Z")

</div>

Hi, I am using Julia 1.4.0 in Atom I am trying to reproduce the results in the Docs Simple Local Optimization The first example optimizing the the Lotka-Volterra equation with one parameter works fine, but then I cann…

---

## [Importing modules that depend on modules](https://discourse.julialang.org/t/importing-modules-that-depend-on-modules/42660)

<div class="topic-metadata">

**Author:** [@tonygem96](https://discourse.julialang.org/u/tonygem96)\
**Replies:** 2\
**Last updated:** [July 9, 2020, 12:56pm UTC](https://discourse.julialang.org/t/importing-modules-that-depend-on-modules/42660 "2020-07-09T12:56:58Z")

</div>

I am fairly new to Julia and have ran into pickle when importing modules that are cross dependent. I have two modules A and B. In B, there is a function, Foo(), that takes a type, T , defined in A. Therefore I import A …

---

## [Equivalent of Hy in Julia?](https://discourse.julialang.org/t/equivalent-of-hy-in-julia/42717)

<div class="topic-metadata">

**Author:** [@dunefox](https://discourse.julialang.org/u/dunefox)\
**Replies:** 7\
**Last updated:** [July 9, 2020, 11:43am UTC](https://discourse.julialang.org/t/equivalent-of-hy-in-julia/42717 "2020-07-09T11:43:41Z")

</div>

I didn’t know where exactly to ask this, so it’s in offtopic now. :man\_shrugging: Recently I’ve been interested in Lisp and found Hylang, a lisp on top of Python: The Hy Manual — hy 0.24.0 documentation. This looks ver…

---

## [Pkg test - ERROR: Cannot \`develop\` package with the same name or uuid as the project](https://discourse.julialang.org/t/pkg-test-error-cannot-develop-package-with-the-same-name-or-uuid-as-the-project/42776)

<div class="topic-metadata">

**Author:** [@rbontekoe](https://discourse.julialang.org/u/rbontekoe)\
**Replies:** 6\
**Last updated:** [July 9, 2020, 10:14am UTC](https://discourse.julialang.org/t/pkg-test-error-cannot-develop-package-with-the-same-name-or-uuid-as-the-project/42776 "2020-07-09T10:14:42Z")

</div>

In my package AppliAR, I have defined tests in runtests.jl. The tests run successfully. When I add AppliAR (Internals & Design) to another project and run test AppliAR I get the message: ERROR: Cannot develop package w…

---

## [Improving macro programming](https://discourse.julialang.org/t/improving-macro-programming/42755)

<div class="topic-metadata">

**Author:** [@Joris\_Pinkse](https://discourse.julialang.org/u/Joris_Pinkse)\
**Replies:** 10\
**Last updated:** [July 9, 2020, 10:10am UTC](https://discourse.julialang.org/t/improving-macro-programming/42755 "2020-07-09T10:10:26Z")

</div>

I’m learning macro programming and as an experiment I programmed up a macro version of map!. It works, but seems clunky with all the escapes. What would be a more elegant way of programming the macro? I can define lo…

---

## [Fast integration of log(2^(P(x)exp(-x^2/2)+1)](https://discourse.julialang.org/t/fast-integration-of-log-2-p-x-exp-x-2-2-1/42762)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 4\
**Last updated:** [July 9, 2020, 8:49am UTC](https://discourse.julialang.org/t/fast-integration-of-log-2-p-x-exp-x-2-2-1/42762 "2020-07-09T08:49:33Z")

</div>

Hello, I would like to compute \\int\_0^{x\_i}log(2^{P\_i(t)exp(-t^2/2)} + 1)dt for a large number of values x\_i where P\_i is a different polynomial (degree \<6) for each x\_i value. The naive approach is to use the functi…

---

## [Strange result from array arithmetic](https://discourse.julialang.org/t/strange-result-from-array-arithmetic/42772)

<div class="topic-metadata">

**Author:** [@billmclean](https://discourse.julialang.org/u/billmclean)\
**Replies:** 3\
**Last updated:** [July 9, 2020, 8:25am UTC](https://discourse.julialang.org/t/strange-result-from-array-arithmetic/42772 "2020-07-09T08:25:47Z")

</div>

I get strange output from this function: function foo(n) t = range(-1, 1, length=n) x = (t .- 1) ./ (t .+ 1) return x\[1\] end For example julia\> for n=100:110 println("foo($n…

---

## [Reproducible simulations in a tarball with toml-file](https://discourse.julialang.org/t/reproducible-simulations-in-a-tarball-with-toml-file/42775)

<div class="topic-metadata">

**Author:** [@jarl](https://discourse.julialang.org/u/jarl)\
**Replies:** 3\
**Last updated:** [July 9, 2020, 7:37am UTC](https://discourse.julialang.org/t/reproducible-simulations-in-a-tarball-with-toml-file/42775 "2020-07-09T07:37:44Z")

</div>

We have a use-case which should not be totally uncommon: We have a couple of julia scripts that illustrate / simulate something in a research paper. In our case it reproduces some figures in the paper. In order for a rea…

---

## [A question about TimeSeriesClustering.jl](https://discourse.julialang.org/t/a-question-about-timeseriesclustering-jl/42734)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 2\
**Last updated:** [July 9, 2020, 6:41am UTC](https://discourse.julialang.org/t/a-question-about-timeseriesclustering-jl/42734 "2020-07-09T06:41:56Z")

</div>

using TimeSeriesClustering ts\_input\_data = load\_timeseries\_data("D:\\\\mycode\\\\code\\\\。。。。.csv"; T=24, years=\[2016\]) ERROR: LoadError: MethodError: objects of type Bool are not callable Stacktrace: \[1\] find\_column\_na…

---

## [Machine Precision ... and 0 in Julia](https://discourse.julialang.org/t/machine-precision-and-0-in-julia/42767)

<div class="topic-metadata">

**Author:** [@danicaratelli](https://discourse.julialang.org/u/danicaratelli)\
**Replies:** 3\
**Last updated:** [July 9, 2020, 5:03am UTC](https://discourse.julialang.org/t/machine-precision-and-0-in-julia/42767 "2020-07-09T05:03:40Z")

</div>

Hello, I have a question about whether there is a way around the following problem. If I take different linear combinations of the same vector I should get the same vector as a result. However, applying the linear combi…

---

## [How to prevent Ctrl-C from terminating a program during readline()](https://discourse.julialang.org/t/how-to-prevent-ctrl-c-from-terminating-a-program-during-readline/42687)

<div class="topic-metadata">

**Author:** [@Bryan\_So](https://discourse.julialang.org/u/Bryan_So)\
**Replies:** 3\
**Last updated:** [July 9, 2020, 3:13am UTC](https://discourse.julialang.org/t/how-to-prevent-ctrl-c-from-terminating-a-program-during-readline/42687 "2020-07-09T03:13:47Z")

</div>

Hi, the following simple code is my attempt to see if I can trap Ctrl-C during readline() Say I’m writing a REPL for a simple language interpreter… obviously I don’t want user accidentally pressing Ctrl-C to cause progr…

---

## [Julia automatically converts datatype in function call](https://discourse.julialang.org/t/julia-automatically-converts-datatype-in-function-call/42756)

<div class="topic-metadata">

**Author:** [@rogeriog](https://discourse.julialang.org/u/rogeriog)\
**Replies:** 9\
**Last updated:** [July 8, 2020, 11:46pm UTC](https://discourse.julialang.org/t/julia-automatically-converts-datatype-in-function-call/42756 "2020-07-08T23:46:25Z")

</div>

I have a function that takes Int32 values as input. function overlap(alpha1::Float64, l1::Int32, m1::Int32, n1::Int32, a::Vector{Float64}, alpha2::Float64, l2::Int32, m2::Int32, n2::Int32, b::Vector{Float64}) --…

---

## [Julia fills entire RAM when Intellisense activates for inserting unicode characters via TAB completion](https://discourse.julialang.org/t/julia-fills-entire-ram-when-intellisense-activates-for-inserting-unicode-characters-via-tab-completion/42554)

<div class="topic-metadata">

**Author:** [@vf30kf](https://discourse.julialang.org/u/vf30kf)\
**Replies:** 4\
**Last updated:** [July 8, 2020, 11:36pm UTC](https://discourse.julialang.org/t/julia-fills-entire-ram-when-intellisense-activates-for-inserting-unicode-characters-via-tab-completion/42554 "2020-07-08T23:36:44Z")

</div>

As the title indicates, I was using the TAB completion sequences of certain unicode inputs (\\cdot, \\rho, \\alpha, \\beta…) when I noticed that the Intellisense stopped working entirely. Then the TAB completion for the uni…

---

## [How to define a JuMP variable in a specific discrete set?](https://discourse.julialang.org/t/how-to-define-a-jump-variable-in-a-specific-discrete-set/42754)

<div class="topic-metadata">

**Author:** [@ZdM87](https://discourse.julialang.org/u/ZdM87)\
**Replies:** 2\
**Last updated:** [July 8, 2020, 11:00pm UTC](https://discourse.julialang.org/t/how-to-define-a-jump-variable-in-a-specific-discrete-set/42754 "2020-07-08T23:00:55Z")

</div>

I have an integer variable that takes values in {2, 5, 6, 8, 10}. How do I define this in JuMP? For an integer variable, I do @variable(model, x, Int) but this will take all integer variables. I can set the upper and …

---

## [Correct syntax for Ipopt and JuMP request?](https://discourse.julialang.org/t/correct-syntax-for-ipopt-and-jump-request/42743)

<div class="topic-metadata">

**Author:** [@zazizoma](https://discourse.julialang.org/u/zazizoma)\
**Replies:** 2\
**Last updated:** [July 8, 2020, 10:49pm UTC](https://discourse.julialang.org/t/correct-syntax-for-ipopt-and-jump-request/42743 "2020-07-08T22:49:54Z")

</div>

Hello, I’m attempting to maximize f(x, y) = c\_1xy^\\gamma - c\_2y using Ipopt, JuMP and Julia 1.4.2. Both x and y have upper and lower bounds. I need to suppress Ipopt output as the routine is running in a loop. This m…

---

## [Packages under /.julia/dev/ shared by different versions of Julia?](https://discourse.julialang.org/t/packages-under-julia-dev-shared-by-different-versions-of-julia/42537)

<div class="topic-metadata">

**Author:** [@Ken\_Lin](https://discourse.julialang.org/u/Ken_Lin)\
**Replies:** 13\
**Last updated:** [July 8, 2020, 10:17pm UTC](https://discourse.julialang.org/t/packages-under-julia-dev-shared-by-different-versions-of-julia/42537 "2020-07-08T22:17:53Z")

</div>

Hello, Packages installed for different versions of Julia on my computer should be independent from each other, right? For example, I can have JuMP 0.18 installed for Julia 1.3.1 while having JuMP 0.21 installed for Ju…

---

## [Dealing with different versions of Julia and JuliaPro and their respective package locations](https://discourse.julialang.org/t/dealing-with-different-versions-of-julia-and-juliapro-and-their-respective-package-locations/42524)

<div class="topic-metadata">

**Author:** [@yelircaasi](https://discourse.julialang.org/u/yelircaasi)\
**Replies:** 3\
**Last updated:** [July 8, 2020, 8:53pm UTC](https://discourse.julialang.org/t/dealing-with-different-versions-of-julia-and-juliapro-and-their-respective-package-locations/42524 "2020-07-08T20:53:18Z")

</div>

Hello all, I am having trouble understanding how to keep things tidy with multiple Julia versions on my machine (OSX Catalina 10.15). The older versions aren’t doing me much good, since I haven’t been able to get their …

---

## [Define types for multiple return values](https://discourse.julialang.org/t/define-types-for-multiple-return-values/42751)

<div class="topic-metadata">

**Author:** [@rogeriog](https://discourse.julialang.org/u/rogeriog)\
**Replies:** 2\
**Last updated:** [July 8, 2020, 8:11pm UTC](https://discourse.julialang.org/t/define-types-for-multiple-return-values/42751 "2020-07-08T20:11:25Z")

</div>

I am new and probably it is a silly question, but couldn’t find a way to do this. I have a function and would like for all the return variables to be of the given type. Apparently I can use this syntax for only one vari…

---

## [JuMP variable bound by bin variable](https://discourse.julialang.org/t/jump-variable-bound-by-bin-variable/42480)

<div class="topic-metadata">

**Author:** [@RaulBritto](https://discourse.julialang.org/u/RaulBritto)\
**Replies:** 2\
**Last updated:** [July 3, 2020, 5:31pm UTC](https://discourse.julialang.org/t/jump-variable-bound-by-bin-variable/42480 "2020-07-03T17:31:04Z")

</div>

Hello, I trying to optimize using JuMP with GLPK. The model has the vectors of variables: y is a binary vector. Each y\[ j \] represents when thefeature is actived or deactived. x is float vector. Each variable x\[ j…

---

## [Debugging Julia HTTP Package Performance bottleneck](https://discourse.julialang.org/t/debugging-julia-http-package-performance-bottleneck/42739)

<div class="topic-metadata">

**Author:** [@dilipjain](https://discourse.julialang.org/u/dilipjain)\
**Replies:** 1\
**Last updated:** [July 8, 2020, 5:49pm UTC](https://discourse.julialang.org/t/debugging-julia-http-package-performance-bottleneck/42739 "2020-07-08T17:49:53Z")

</div>

I was doing performance analysis of Julia HTTP server. A simple HelloWorld API gives around 4K Request/second(1 Core, Max CPU Utilization = 50%). Since the CPU utilisation of Julia process is not 100% I suspect there is …

---

## [Get One-On-One Help](https://discourse.julialang.org/t/get-one-on-one-help/42720)

<div class="topic-metadata">

**Author:** [@kapple](https://discourse.julialang.org/u/kapple)\
**Replies:** 5\
**Last updated:** [July 8, 2020, 5:39pm UTC](https://discourse.julialang.org/t/get-one-on-one-help/42720 "2020-07-08T17:39:46Z")

</div>

Hi everyone, I’ve been following YouTube tutorials, online guides and have even purchased two books. But I keep on encountering errors and roadblocks on my path to becoming a Julia programmer, and at this point it’s get…

---

## [How to add a rotated annotation using Plots.jl?](https://discourse.julialang.org/t/how-to-add-a-rotated-annotation-using-plots-jl/33705)

<div class="topic-metadata">

**Author:** [@Tianzhu\_Xiong](https://discourse.julialang.org/u/Tianzhu_Xiong)\
**Replies:** 2\
**Last updated:** [July 8, 2020, 5:21pm UTC](https://discourse.julialang.org/t/how-to-add-a-rotated-annotation-using-plots-jl/33705 "2020-07-08T17:21:29Z")

</div>

Sometimes it is convenient to squeeze in a rotated (eg. vertically placed) text in a thin figure. The annotate!() method in Plots.jl seems to only produce horizontal text in the plot, is there any trick to rotate the tex…

---

## [Conditional package dependency to avoid build errors](https://discourse.julialang.org/t/conditional-package-dependency-to-avoid-build-errors/42742)

<div class="topic-metadata">

**Author:** [@lgo](https://discourse.julialang.org/u/lgo)\
**Replies:** 2\
**Last updated:** [July 8, 2020, 5:19pm UTC](https://discourse.julialang.org/t/conditional-package-dependency-to-avoid-build-errors/42742 "2020-07-08T17:19:44Z")

</div>

I’ve created a package called anyMOD.jl that uses the Gurobi package as a dependency. However, Gurobi is only required for one special but quite useful feature and apart from that not used anywhere in the package. Buildi…

---

## [How do delete a column from a freqtable?](https://discourse.julialang.org/t/how-do-delete-a-column-from-a-freqtable/42744)

<div class="topic-metadata">

**Author:** [@Julia1](https://discourse.julialang.org/u/Julia1)\
**Replies:** 2\
**Last updated:** [July 8, 2020, 5:04pm UTC](https://discourse.julialang.org/t/how-do-delete-a-column-from-a-freqtable/42744 "2020-07-08T17:04:21Z")

</div>

Hi how’s it going? I’m using freqtables as a pivot table in Julia, and essentially I want to drop certain columns that I don’t need after computing the freqtable. Here’s an example of a computation straight from the doc…

---

## [Sysimage incompatible between Intel and AMD x86\_64?](https://discourse.julialang.org/t/sysimage-incompatible-between-intel-and-amd-x86-64/42716)

<div class="topic-metadata">

**Author:** [@alkoedl](https://discourse.julialang.org/u/alkoedl)\
**Replies:** 3\
**Last updated:** [July 8, 2020, 4:44pm UTC](https://discourse.julialang.org/t/sysimage-incompatible-between-intel-and-amd-x86-64/42716 "2020-07-08T16:44:23Z")

</div>

I’m using PackageCompiler to provide colleagues with a batteries included package (Julia + pre-compiled Julia code) that they just unzip and run. This process worked perfectly so far for Intel based computers. Trying to …

---

## [Mask on a 1D array](https://discourse.julialang.org/t/mask-on-a-1d-array/42740)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 2\
**Last updated:** [July 8, 2020, 3:59pm UTC](https://discourse.julialang.org/t/mask-on-a-1d-array/42740 "2020-07-08T15:59:05Z")

</div>

Hello, I would like to create a “mask” of a n-dimensional vector x whose i-th entrance is masked by 0, i.e xmask = \[x1; x2; ...;xi-1; 0; xi+1; ...; xn\] Is it possible to do this with a “view” and avoid to create a wh…

---

## [Documentation feature request](https://discourse.julialang.org/t/documentation-feature-request/42711)

<div class="topic-metadata">

**Author:** [@hafez\_ahmad](https://discourse.julialang.org/u/hafez_ahmad)\
**Replies:** 7\
**Last updated:** [July 8, 2020, 3:18pm UTC](https://discourse.julialang.org/t/documentation-feature-request/42711 "2020-07-08T15:18:42Z")

</div>

I think I am missing documentation like python or Matlab. when I installed python or Matlab, a lot of documentation automatically installed in my machine. I can use it offline mode. is there any plan for Julia’s document…

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

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