# Latest

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

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

**Page:** 1551

---

## [1.6 (Soft)-Feature Freeze: Nov 8th](https://discourse.julialang.org/t/1-6-soft-feature-freeze-nov-8th/49379)

<div class="topic-metadata">

**Author:** [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Replies:** 7\
**Last updated:** [December 11, 2020, 12:55am UTC](https://discourse.julialang.org/t/1-6-soft-feature-freeze-nov-8th/49379 "2020-12-11T00:55:57Z")

</div>

Julia 1.6 is shaping up to be a beast of a release, however, we are already significantly overdue with starting the release preparations. Therefore, we are announcing a (soft) feature freeze already at November 8th. The …

---

## [Setting Knitro options](https://discourse.julialang.org/t/setting-knitro-options/51637)

<div class="topic-metadata">

**Author:** [@Arega\_Getaneh](https://discourse.julialang.org/u/Arega_Getaneh)\
**Replies:** 1\
**Last updated:** [December 11, 2020, 12:33am UTC](https://discourse.julialang.org/t/setting-knitro-options/51637 "2020-12-11T00:33:21Z")

</div>

I am using Knitro solver for MPEC problem. However, while solving, the solver exited before reaching the optimal decision and the information reads as EXIT: Problem appears to be unbounded. Iterate is feasible and objec…

---

## [DiffEq and SVector](https://discourse.julialang.org/t/diffeq-and-svector/51541)

<div class="topic-metadata">

**Author:** [@klaff](https://discourse.julialang.org/u/klaff)\
**Replies:** 16\
**Last updated:** [December 10, 2020, 11:11pm UTC](https://discourse.julialang.org/t/diffeq-and-svector/51541 "2020-12-10T23:11:57Z")

</div>

Hello, I’ve been rereading some of the docs and tutorials in SciML and in particular this Optimizing DiffEq Code, and tried using StaticArrays as in the lorenz example, but on a problem of my own. In my case, the execut…

---

## [Static code analysis tool for Julia](https://discourse.julialang.org/t/static-code-analysis-tool-for-julia/51461)

<div class="topic-metadata">

**Author:** [@tymwol](https://discourse.julialang.org/u/tymwol)\
**Replies:** 4\
**Last updated:** [December 10, 2020, 10:40pm UTC](https://discourse.julialang.org/t/static-code-analysis-tool-for-julia/51461 "2020-12-10T22:40:05Z")

</div>

Is there any static code analysis tool for Julia? I’m looking for something that I could run from command line, for automatic code checks.

---

## [Extracting JuMP results](https://discourse.julialang.org/t/extracting-jump-results/51429)

<div class="topic-metadata">

**Author:** [@JohnZ](https://discourse.julialang.org/u/JohnZ)\
**Replies:** 6\
**Last updated:** [December 10, 2020, 10:25pm UTC](https://discourse.julialang.org/t/extracting-jump-results/51429 "2020-12-10T22:25:19Z")

</div>

It seems like matrix multiplication does not work in the usual way with DenseAxisArray, If I use, ones(5,15)\*x using the code in the MWE it throws an error. Interestingly, array slicing ones(5,15)\[1,:\]'\*x works fine, b…

---

## [Julia's FEM Landscape: where should DifferentialEquations go?](https://discourse.julialang.org/t/julias-fem-landscape-where-should-differentialequations-go/1592)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 37\
**Last updated:** [December 10, 2020, 10:05pm UTC](https://discourse.julialang.org/t/julias-fem-landscape-where-should-differentialequations-go/1592 "2020-12-10T22:05:49Z")

</div>

Hey, I am taking a good hard look at the Julia FEM landscape and would like some input. Let me first explain what I see the domain and scope of DifferentialEquations.jl. My work and research is centered around solving di…

---

## [Importing a .py file not working](https://discourse.julialang.org/t/importing-a-py-file-not-working/51366)

<div class="topic-metadata">

**Author:** [@lorrp1](https://discourse.julialang.org/u/lorrp1)\
**Replies:** 10\
**Last updated:** [December 10, 2020, 9:38pm UTC](https://discourse.julialang.org/t/importing-a-py-file-not-working/51366 "2020-12-10T21:38:24Z")

</div>

Hello, Im trying to import a file with functions and classes written in python. i have tried using this: pushfirst!(PyVector(pyimport("sys")."path"), "") x = pyimport("Models.py") or x = pyimport("Models") Models.py …

---

## [Julia extension in VS Code under Windows](https://discourse.julialang.org/t/julia-extension-in-vs-code-under-windows/51610)

<div class="topic-metadata">

**Author:** [@Vahagn\_Altunyan](https://discourse.julialang.org/u/Vahagn_Altunyan)\
**Replies:** 1\
**Last updated:** [December 10, 2020, 8:32pm UTC](https://discourse.julialang.org/t/julia-extension-in-vs-code-under-windows/51610 "2020-12-10T20:32:27Z")

</div>

Hi. I’m using Julia in VS Code under Windows. I have installed the Julia extension for VS Code, but autocomplete won’t work properly. It only suggests some words from the same file and not any variables. Also the Latex …

---

## [Disabling allocations](https://discourse.julialang.org/t/disabling-allocations/51028)

<div class="topic-metadata">

**Author:** [@Ginter](https://discourse.julialang.org/u/Ginter)\
**Replies:** 50\
**Last updated:** [December 10, 2020, 7:39pm UTC](https://discourse.julialang.org/t/disabling-allocations/51028 "2020-12-10T19:39:12Z")

</div>

Is there a way of disabling allocations altogether within the body of a function? I optimized my code to avoid all allocations, but they keep creeping back in with changes and are annoying to locate. I would much rather …

---

## [How to modulate the resolution of Julia DifferentialEquations solver](https://discourse.julialang.org/t/how-to-modulate-the-resolution-of-julia-differentialequations-solver/51561)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 6\
**Last updated:** [December 10, 2020, 8:00pm UTC](https://discourse.julialang.org/t/how-to-modulate-the-resolution-of-julia-differentialequations-solver/51561 "2020-12-10T20:00:21Z")

</div>

Hello, I have this model with delayed differential equations: using DifferentialEquations # function function baseInfect!(du, u, p, t) μ, κ, φ, ω, η, β = p du\[1\] = ((μ \* u\[1\]) \* (1 - ((u\[1\]+u\[2\])/κ))) - (φ \* u\[…

---

## [Plot legend with number of columns\>2](https://discourse.julialang.org/t/plot-legend-with-number-of-columns-2/51627)

<div class="topic-metadata">

**Author:** [@Manos\_Vereroudakis](https://discourse.julialang.org/u/Manos_Vereroudakis)\
**Replies:** 0\
**Last updated:** [December 10, 2020, 7:51pm UTC](https://discourse.julialang.org/t/plot-legend-with-number-of-columns-2/51627 "2020-12-10T19:51:00Z")

</div>

Hello all, New to Julia here, I was wondering if there is anything similar to matplotlib’s legend option ncol=2 for the native Plots.jl? I have seen the reply here (Plot legend with multiple columns) but I was wondering…

---

## [CNN for MNIST](https://discourse.julialang.org/t/cnn-for-mnist/51576)

<div class="topic-metadata">

**Author:** [@Tomas\_Berky](https://discourse.julialang.org/u/Tomas_Berky)\
**Replies:** 9\
**Last updated:** [December 10, 2020, 7:30pm UTC](https://discourse.julialang.org/t/cnn-for-mnist/51576 "2020-12-10T19:30:43Z")

</div>

Hello guys, i am trying to make my own CNN for MNIST classification. But i am getting a weird error. LoadError: DimensionMismatch("Rank of x and w must match! (2 vs. 4)") in expression starting at C:\\Users\\tomic\\OneDri…

---

## [Mutating global variable during precompilation](https://discourse.julialang.org/t/mutating-global-variable-during-precompilation/51478)

<div class="topic-metadata">

**Author:** [@Macfli](https://discourse.julialang.org/u/Macfli)\
**Replies:** 3\
**Last updated:** [December 10, 2020, 7:13pm UTC](https://discourse.julialang.org/t/mutating-global-variable-during-precompilation/51478 "2020-12-10T19:13:15Z")

</div>

Hi, I am trying to register items in a top-level global variable from include()d files and modules, and am seeing behavior I am not able to explain. Here is a minimal code: File main.jl: module MyPkg items = \[\] funct…

---

## [Calculating Breaths Per Minute from Video Data](https://discourse.julialang.org/t/calculating-breaths-per-minute-from-video-data/51582)

<div class="topic-metadata">

**Author:** [@RodBiren](https://discourse.julialang.org/u/RodBiren)\
**Replies:** 9\
**Last updated:** [December 10, 2020, 6:20pm UTC](https://discourse.julialang.org/t/calculating-breaths-per-minute-from-video-data/51582 "2020-12-10T18:20:32Z")

</div>

I have been able to process video data of myself sleeping using a Wyze camera to produce fairly solid data that I would like to use to calculate breaths per minute.The actual calculation is trivial. I calculate the perce…

---

## [Interpolation on non-rectangular domain](https://discourse.julialang.org/t/interpolation-on-non-rectangular-domain/51568)

<div class="topic-metadata">

**Author:** [@Honza9723](https://discourse.julialang.org/u/Honza9723)\
**Replies:** 12\
**Last updated:** [December 10, 2020, 6:12pm UTC](https://discourse.julialang.org/t/interpolation-on-non-rectangular-domain/51568 "2020-12-10T18:12:08Z")

</div>

Dear all, I would like to ask for advice, how to interpolate function on a non-rectangular domain. I am working on a problem, where the domain of my function is 2 or 3 dimensional, where all variables are restricted to …

---

## [Struggling to access packages with new Julia install](https://discourse.julialang.org/t/struggling-to-access-packages-with-new-julia-install/51577)

<div class="topic-metadata">

**Author:** [@PennyL](https://discourse.julialang.org/u/PennyL)\
**Replies:** 7\
**Last updated:** [December 10, 2020, 6:03pm UTC](https://discourse.julialang.org/t/struggling-to-access-packages-with-new-julia-install/51577 "2020-12-10T18:03:13Z")

</div>

Hi, First, apologies, and a request for patience, my techie skills comprise small islands of knowledge in a sea of empty space. My problem is that I am trying to get Julia running on my laptop. I have been using Anacon…

---

## [Modifying coefficient of quadratic term in objective function](https://discourse.julialang.org/t/modifying-coefficient-of-quadratic-term-in-objective-function/51622)

<div class="topic-metadata">

**Author:** [@guilhermebodin](https://discourse.julialang.org/u/guilhermebodin)\
**Replies:** 1\
**Last updated:** [December 10, 2020, 5:59pm UTC](https://discourse.julialang.org/t/modifying-coefficient-of-quadratic-term-in-objective-function/51622 "2020-12-10T17:59:17Z")

</div>

Suppose I have this problem: using JuMP, OSQP m = Model(OSQP.Optimizer) @variable(m, x\[1:3\] \>= 0) @constraint(m, sum(x) .\>= 1) @objective(m, Min, x\[1\] + 2x\[2\] + 3x\[3\]^2 + 2x\[1\]^2) optimize!(m) objective\_value(m) I can …

---

## [Matplotlib dependency for Documenter.jl in Github Actions](https://discourse.julialang.org/t/matplotlib-dependency-for-documenter-jl-in-github-actions/51597)

<div class="topic-metadata">

**Author:** [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Replies:** 9\
**Last updated:** [December 10, 2020, 4:10pm UTC](https://discourse.julialang.org/t/matplotlib-dependency-for-documenter-jl-in-github-actions/51597 "2020-12-10T16:10:29Z")

</div>

I just wrote a small part of the documentation, that uses PyPlots.jl to render a plot (I am actually documenting a PlotRecipe. What is the easiest way to add the matplotlib and python to the documenter Github Action?

---

## [Addition to Division Operator](https://discourse.julialang.org/t/addition-to-division-operator/51592)

<div class="topic-metadata">

**Author:** [@vaeli](https://discourse.julialang.org/u/vaeli)\
**Replies:** 5\
**Last updated:** [December 10, 2020, 3:50pm UTC](https://discourse.julialang.org/t/addition-to-division-operator/51592 "2020-12-10T15:50:30Z")

</div>

For my own consistency, I would like / A \* 100 to equal A / 100.

---

## [Problem in adding of ImageView.jl](https://discourse.julialang.org/t/problem-in-adding-of-imageview-jl/51609)

<div class="topic-metadata">

**Author:** [@Debraj\_Bhal](https://discourse.julialang.org/u/Debraj_Bhal)\
**Replies:** 0\
**Last updated:** [December 10, 2020, 1:53pm UTC](https://discourse.julialang.org/t/problem-in-adding-of-imageview-jl/51609 "2020-12-10T13:53:16Z")

</div>

(@JuliaPro\_v1.5.3-1) pkg\> add ImageView Resolving package versions... Downloading artifact: GTK3 Exception calling "DownloadFile" with "2" argument(s): "An exception occurred during a WebClient request." At line:13 cha…

---

## [Strange re-typing of arrays of numbers](https://discourse.julialang.org/t/strange-re-typing-of-arrays-of-numbers/51603)

<div class="topic-metadata">

**Author:** [@xyz1](https://discourse.julialang.org/u/xyz1)\
**Replies:** 2\
**Last updated:** [December 10, 2020, 1:51pm UTC](https://discourse.julialang.org/t/strange-re-typing-of-arrays-of-numbers/51603 "2020-12-10T13:51:48Z")

</div>

Hello, I was putting together some multiple-dispatches to find that it doesn’t work as I would expect. Or rather, maybe dispatching works perfectly great, but my arrays of numbers get re-typed strangely. When you have a…

---

## [DifferentialEquations.jl: Complex function results in Inexact Error](https://discourse.julialang.org/t/differentialequations-jl-complex-function-results-in-inexact-error/51591)

<div class="topic-metadata">

**Author:** [@ess3sq](https://discourse.julialang.org/u/ess3sq)\
**Replies:** 5\
**Last updated:** [December 10, 2020, 12:57pm UTC](https://discourse.julialang.org/t/differentialequations-jl-complex-function-results-in-inexact-error/51591 "2020-12-10T12:57:50Z")

</div>

I am trying to solve a one dimensional Schrödinger equation which has been reduced to a first-order linear ODE of the kind \\psi’(x) = f(x) \\psi(x), where all functions have complex args (Complex{Float64}) I believe. Eit…

---

## [Conditional test \`? :\` behave differently if switch the turn of return value](https://discourse.julialang.org/t/conditional-test-behave-differently-if-switch-the-turn-of-return-value/51578)

<div class="topic-metadata">

**Author:** [@KyleJT](https://discourse.julialang.org/u/KyleJT)\
**Replies:** 4\
**Last updated:** [December 10, 2020, 12:43pm UTC](https://discourse.julialang.org/t/conditional-test-behave-differently-if-switch-the-turn-of-return-value/51578 "2020-12-10T12:43:58Z")

</div>

Currently, I worked on this homework, i.e. Triangle. Some code snippet for test the isosceles is as following: reset\_pos(idx) = idx == 0 ? 1 : idx function is\_triangle(sides) i = 1 while i \<= length(sides) …

---

## [CxxWrap: building a module for Windows with Cygwin and MingW?](https://discourse.julialang.org/t/cxxwrap-building-a-module-for-windows-with-cygwin-and-mingw/51539)

<div class="topic-metadata">

**Author:** [@jpeeter](https://discourse.julialang.org/u/jpeeter)\
**Replies:** 1\
**Last updated:** [December 10, 2020, 11:59am UTC](https://discourse.julialang.org/t/cxxwrap-building-a-module-for-windows-with-cygwin-and-mingw/51539 "2020-12-10T11:59:18Z")

</div>

I am building a library for Kerberos integration, using CxxWrap to expose some functionality to Julia. This works fine on Linux, but on Windows I’m struggling to get the right toolchain. IIUC - in order to avoid having t…

---

## [Problem using Plots](https://discourse.julialang.org/t/problem-using-plots/51559)

<div class="topic-metadata">

**Author:** [@1119](https://discourse.julialang.org/u/1119)\
**Replies:** 1\
**Last updated:** [December 10, 2020, 10:47am UTC](https://discourse.julialang.org/t/problem-using-plots/51559 "2020-12-10T10:47:24Z")

</div>

Hi. I need some help here. I tried adding the Plots pakage in julia and got an error. I have windows 7 and 1.5.3 Julia version. It seemes like an error in the path but I don’t know how to fix it. I then tried it in…

---

## [Colon / Ranges](https://discourse.julialang.org/t/colon-ranges/51032)

<div class="topic-metadata">

**Author:** [@vaeli](https://discourse.julialang.org/u/vaeli)\
**Replies:** 5\
**Last updated:** [December 10, 2020, 10:32am UTC](https://discourse.julialang.org/t/colon-ranges/51032 "2020-12-10T10:32:27Z")

</div>

I solved something about colon. 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 If upper line shows characters of string (elements of array etc.), and lower line shows the empty space / separator between two characters, then …

---

## [Print debugging output only if some condition holds](https://discourse.julialang.org/t/print-debugging-output-only-if-some-condition-holds/51595)

<div class="topic-metadata">

**Author:** [@Jae-Mo\_Lihm](https://discourse.julialang.org/u/Jae-Mo_Lihm)\
**Replies:** 1\
**Last updated:** [December 10, 2020, 9:20am UTC](https://discourse.julialang.org/t/print-debugging-output-only-if-some-condition-holds/51595 "2020-12-10T09:20:46Z")

</div>

I want to introduce some checks in my function. In my real code, the check is time-consuming. So, I want that part to run only when some global environment variable is set (e.g. ENV\["JULIA\_DEBUG"\] = "all"). When the gl…

---

## [Macro hygene escape puzzle](https://discourse.julialang.org/t/macro-hygene-escape-puzzle/51588)

<div class="topic-metadata">

**Author:** [@thisrod](https://discourse.julialang.org/u/thisrod)\
**Replies:** 2\
**Last updated:** [December 10, 2020, 9:05am UTC](https://discourse.julialang.org/t/macro-hygene-escape-puzzle/51588 "2020-12-10T09:05:31Z")

</div>

I want to define a macro similar to those in the code below, where the function f is evaluated in the scope where the macro is expanded, but default is evaluated in module A. \_ \_ \_ \_(\_)\_ | D…

---

## [How to debug ODE](https://discourse.julialang.org/t/how-to-debug-ode/50576)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 14\
**Last updated:** [December 10, 2020, 6:59am UTC](https://discourse.julialang.org/t/how-to-debug-ode/50576 "2020-12-10T06:59:22Z")

</div>

Hello, I have a set of ODEs to model a bacterial infection: function kinInfect!(du, u, p, t) μ , φ, η, β, ω, χ, ε = p H = h = 0 #= du\[1\] = susceptible du\[2\] = infected du\[3\] = phages μ…

---

## [Add constraints in parallel](https://discourse.julialang.org/t/add-constraints-in-parallel/51382)

<div class="topic-metadata">

**Author:** [@cyanzhao42](https://discourse.julialang.org/u/cyanzhao42)\
**Replies:** 2\
**Last updated:** [December 10, 2020, 6:39am UTC](https://discourse.julialang.org/t/add-constraints-in-parallel/51382 "2020-12-10T06:39:27Z")

</div>

Hi all, I am wondering can I add constraints to one model in parallel? The constraints is added via a for-loop. Thanks!

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

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