# Latest

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

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

**Page:** 1485

---

## [What is the usuage of CUDA.ones()?](https://discourse.julialang.org/t/what-is-the-usuage-of-cuda-ones/55680)

<div class="topic-metadata">

**Author:** [@naviinkapoor](https://discourse.julialang.org/u/naviinkapoor)\
**Replies:** 0\
**Last updated:** [February 20, 2021, 3:37pm UTC](https://discourse.julialang.org/t/what-is-the-usuage-of-cuda-ones/55680 "2021-02-20T15:37:49Z")

</div>

What is the usage of CUDA.ones()? And where we use this normally?

---

## [Any equivalent to Pandas read\_html() in DataFrames.jl?](https://discourse.julialang.org/t/any-equivalent-to-pandas-read-html-in-dataframes-jl/55674)

<div class="topic-metadata">

**Author:** [@clibassi](https://discourse.julialang.org/u/clibassi)\
**Replies:** 1\
**Last updated:** [February 20, 2021, 3:24pm UTC](https://discourse.julialang.org/t/any-equivalent-to-pandas-read-html-in-dataframes-jl/55674 "2021-02-20T15:24:51Z")

</div>

Hi all - Just wondering if there is an equivalent in Dataframes.jl to pandas’s read\_html() function for reading in HTML tables. I did some googling and looked through the docs and didn’t see anything - so I assume it’s …

---

## [Adding Julia to PATH on Windows](https://discourse.julialang.org/t/adding-julia-to-path-on-windows/55673)

<div class="topic-metadata">

**Author:** [@eliascarv](https://discourse.julialang.org/u/eliascarv)\
**Replies:** 5\
**Last updated:** [February 20, 2021, 3:15pm UTC](https://discourse.julialang.org/t/adding-julia-to-path-on-windows/55673 "2021-02-20T15:15:37Z")

</div>

Hello, I’m a beginner in programming with the Julia language and I have a question. Is adding Julia to PATH on Windows 10 really necessary? If I don’t, won’t my Julia code run on VSCode or Jupyter? P.S. Sorry for my En…

---

## [Datastructure for two-way map](https://discourse.julialang.org/t/datastructure-for-two-way-map/52735)

<div class="topic-metadata">

**Author:** [@rikh](https://discourse.julialang.org/u/rikh)\
**Replies:** 12\
**Last updated:** [January 4, 2021, 4:18pm UTC](https://discourse.julialang.org/t/datastructure-for-two-way-map/52735 "2021-01-04T16:18:47Z")

</div>

Say that I have two vectors U and V defined as U = \["A", "D", "B"\] V = \["F", "G", "B"\] and I want to map from U to V, and V to U. Both vectors contain only unique elements. For a one-way mapping, this is easy via a Dic…

---

## [\[ANN\] LaTeXDatax.jl 3.0.0](https://discourse.julialang.org/t/ann-latexdatax-jl-3-0-0/55675)

<div class="topic-metadata">

**Author:** [@gustaphe](https://discourse.julialang.org/u/gustaphe)\
**Replies:** 0\
**Last updated:** [February 20, 2021, 1:31pm UTC](https://discourse.julialang.org/t/ann-latexdatax-jl-3-0-0/55675 "2021-02-20T13:31:28Z")

</div>

I just finished a major rework of my LaTeXDatax package, and I realized I never announced it here when it first came out, so I’m taking the opportunity now. Introduction LaTeXDatax is an accompanying package to the LaTe…

---

## [How to create multidimensional sets in JuMP/Julia as in GAMS](https://discourse.julialang.org/t/how-to-create-multidimensional-sets-in-jump-julia-as-in-gams/55581)

<div class="topic-metadata">

**Author:** [@GraceMabele](https://discourse.julialang.org/u/GraceMabele)\
**Replies:** 5\
**Last updated:** [February 20, 2021, 10:49am UTC](https://discourse.julialang.org/t/how-to-create-multidimensional-sets-in-jump-julia-as-in-gams/55581 "2021-02-20T10:49:38Z")

</div>

In GAMS, we can create multidimensional sets as follows Set i "mining regions" / china, ghana, ee+ussr, s-leone / n "ports" / accra, freetown, leningrad, shanghai / in(i,n) "mines to…

---

## [Repositioning Axis labels in Plots.jl](https://discourse.julialang.org/t/repositioning-axis-labels-in-plots-jl/55669)

<div class="topic-metadata">

**Author:** [@sca22](https://discourse.julialang.org/u/sca22)\
**Replies:** 0\
**Last updated:** [February 20, 2021, 10:20am UTC](https://discourse.julialang.org/t/repositioning-axis-labels-in-plots-jl/55669 "2021-02-20T10:20:18Z")

</div>

Hi Everyone, I’m currently having some problems with the axis labels in a 3D contour plot in Plots.jl, specifically with the pyplots backend. As you can see from the image below the axis labels overlap with the numbers.…

---

## [Attach boilerplate code to vscode cell start and end \[Feature idea\]](https://discourse.julialang.org/t/attach-boilerplate-code-to-vscode-cell-start-and-end-feature-idea/55668)

<div class="topic-metadata">

**Author:** [@Marcell\_Havlik](https://discourse.julialang.org/u/Marcell_Havlik)\
**Replies:** 0\
**Last updated:** [February 20, 2021, 10:10am UTC](https://discourse.julialang.org/t/attach-boilerplate-code-to-vscode-cell-start-and-end-feature-idea/55668 "2021-02-20T10:10:45Z")

</div>

Hey julianners, I am just curious whether is it possible to create a mechnaism that could be overrideable for julia vscode plugin. I could imagine like this: function VSCodeServer.begin\_cell() global starttime = ti…

---

## [In line execution inside function](https://discourse.julialang.org/t/in-line-execution-inside-function/55666)

<div class="topic-metadata">

**Author:** [@anon74562486](https://discourse.julialang.org/u/anon74562486)\
**Replies:** 3\
**Last updated:** [February 20, 2021, 9:31am UTC](https://discourse.julialang.org/t/in-line-execution-inside-function/55666 "2021-02-20T09:31:04Z")

</div>

I really like in line execution of julia code. However if I put my code inside a main() function (to avoid global variables) I can’t get in line execution inside the main(). Is there a solution to this? Thank you.

---

## [Hello all. I've been trying to use \`LsqFit\` to fit a hyperbolic tangent function t](https://discourse.julialang.org/t/hello-all-ive-been-trying-to-use-lsqfit-to-fit-a-hyperbolic-tangent-function-t/55649)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 2\
**Last updated:** [February 20, 2021, 7:33am UTC](https://discourse.julialang.org/t/hello-all-ive-been-trying-to-use-lsqfit-to-fit-a-hyperbolic-tangent-function-t/55649 "2021-02-20T07:33:17Z")

</div>

Hello all. I’ve been trying to use LsqFit to fit a hyperbolic tangent function to some data about terminal velocity in free fall. Using SciPy’s curve\_fit function, it seems to work fine. However, in Julia, it’s nowhere n…

---

## [Python and Julia arrays indexing](https://discourse.julialang.org/t/python-and-julia-arrays-indexing/51792)

<div class="topic-metadata">

**Author:** [@R\_Surya\_Narayan](https://discourse.julialang.org/u/R_Surya_Narayan)\
**Replies:** 5\
**Last updated:** [February 20, 2021, 6:01am UTC](https://discourse.julialang.org/t/python-and-julia-arrays-indexing/51792 "2021-02-20T06:01:31Z")

</div>

Hello, I am trying to use a reaction solver package of Python called Cantera in Julia using PyCall. In the following code, I am trying to extract all reactions that contain “CO” and “CO2” in the reactant side and product…

---

## [ODEProblem error --\> LoadError: UndefVarError: \_derivative not defined](https://discourse.julialang.org/t/odeproblem-error-loaderror-undefvarerror-derivative-not-defined/55038)

<div class="topic-metadata">

**Author:** [@grheadrick](https://discourse.julialang.org/u/grheadrick)\
**Replies:** 2\
**Last updated:** [February 20, 2021, 3:47am UTC](https://discourse.julialang.org/t/odeproblem-error-loaderror-undefvarerror-derivative-not-defined/55038 "2021-02-20T03:47:12Z")

</div>

I am getting an error when solving a system of differential equations. I have made the below example to demonstrate. Julia v1.5.3 ModelingToolkit v5.6.0 OrdinaryDiffEq v5.50.2 using ModelingToolkit, OrdinaryDiffEq, P…

---

## [Implicit nonlinear odes with variable mass matrix](https://discourse.julialang.org/t/implicit-nonlinear-odes-with-variable-mass-matrix/54499)

<div class="topic-metadata">

**Author:** [@clm](https://discourse.julialang.org/u/clm)\
**Replies:** 1\
**Last updated:** [February 20, 2021, 3:46am UTC](https://discourse.julialang.org/t/implicit-nonlinear-odes-with-variable-mass-matrix/54499 "2021-02-20T03:46:36Z")

</div>

Hi all. I’m quite new to Julia, moving over from Python and am mostly attracted by the more advanced differential equations solvers that let me incorporate mass matrices. I’m trying to use variable mass matrices in some …

---

## [\[RFC/ANN\] OscillatoryIntegralsODE.jl: Levin method + OrdinaryDiffEq](https://discourse.julialang.org/t/rfc-ann-oscillatoryintegralsode-jl-levin-method-ordinarydiffeq/55601)

<div class="topic-metadata">

**Author:** [@xzackli](https://discourse.julialang.org/u/xzackli)\
**Replies:** 3\
**Last updated:** [February 20, 2021, 3:12am UTC](https://discourse.julialang.org/t/rfc-ann-oscillatoryintegralsode-jl-levin-method-ordinarydiffeq/55601 "2021-02-20T03:12:21Z")

</div>

I’m requesting feedback on OscillatoryIntegralsODE.jl, which numerically evaluates integrals I = \\int\_a^b f(x) S(rx) \\, dx where f(x) is smooth and not oscillatory, but S(x) is highly oscillatory for large frequencies r…

---

## [Delete/redraw plot in Makie](https://discourse.julialang.org/t/delete-redraw-plot-in-makie/55659)

<div class="topic-metadata">

**Author:** [@darsnack](https://discourse.julialang.org/u/darsnack)\
**Replies:** 1\
**Last updated:** [February 20, 2021, 1:56am UTC](https://discourse.julialang.org/t/delete-redraw-plot-in-makie/55659 "2021-02-20T01:56:25Z")

</div>

I have a neural network and I am plotting its decision boundary using a trick with contourf! (basically make a 2D grid of points then apply the neural network to classify each point; contour line will end up on the decis…

---

## [Flux VAE on the iris dataset](https://discourse.julialang.org/t/flux-vae-on-the-iris-dataset/55657)

<div class="topic-metadata">

**Author:** [@rsteckel](https://discourse.julialang.org/u/rsteckel)\
**Replies:** 2\
**Last updated:** [February 20, 2021, 12:35am UTC](https://discourse.julialang.org/t/flux-vae-on-the-iris-dataset/55657 "2021-02-20T00:35:12Z")

</div>

I’ve been stuck trying to get a variational autoencoder working using Flux. I’ve tried to adapt the mnist VAE in Flux’s model zoo (which I could not get to work either) to the iris data set. Here’s my code so far: usin…

---

## [Are there rational transfer functions available in Julia?](https://discourse.julialang.org/t/are-there-rational-transfer-functions-available-in-julia/55638)

<div class="topic-metadata">

**Author:** [@askvorts](https://discourse.julialang.org/u/askvorts)\
**Replies:** 4\
**Last updated:** [February 20, 2021, 12:07am UTC](https://discourse.julialang.org/t/are-there-rational-transfer-functions-available-in-julia/55638 "2021-02-20T00:07:43Z")

</div>

Are there available rational transfer functions, possibly equivalent to MATLAB’s functions filter(b,1,x) and filter(b,a,x,zi) where zi are initial conditions for filter delays. Thanks in advance!

---

## [Type stability on Arrays of Arrays in nested for loops?](https://discourse.julialang.org/t/type-stability-on-arrays-of-arrays-in-nested-for-loops/55619)

<div class="topic-metadata">

**Author:** [@swishmas](https://discourse.julialang.org/u/swishmas)\
**Replies:** 16\
**Last updated:** [February 20, 2021, 12:01am UTC](https://discourse.julialang.org/t/type-stability-on-arrays-of-arrays-in-nested-for-loops/55619 "2021-02-20T00:01:52Z")

</div>

I was writing a function that would ideally be written as function ideal(supervec::Array{Array{Int64,1},1}, vec::Array{Int64,1}) return vcat(supervec\[vec\]) end But this takes a bit more time than I think is unn…

---

## [Hello, on my freshly installed julia v1.4.1 on Windows 10, when I do \`run(\`echo he](https://discourse.julialang.org/t/hello-on-my-freshly-installed-julia-v1-4-1-on-windows-10-when-i-do-run-echo-he/55655)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 1\
**Last updated:** [February 19, 2021, 10:35pm UTC](https://discourse.julialang.org/t/hello-on-my-freshly-installed-julia-v1-4-1-on-windows-10-when-i-do-run-echo-he/55655 "2021-02-19T22:35:02Z")

</div>

Hello, on my freshly installed julia v1.4.1 on Windows 10, when I do run(echo hello) I get the following error, any idea what’s wrong ? run(\`echo hello\`) ERROR: IOError: could not spawn \`echo hello\`: no such file or dir…

---

## [Plots, text marker instead of markershape?](https://discourse.julialang.org/t/plots-text-marker-instead-of-markershape/55656)

<div class="topic-metadata">

**Author:** [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Replies:** 1\
**Last updated:** [February 19, 2021, 10:26pm UTC](https://discourse.julialang.org/t/plots-text-marker-instead-of-markershape/55656 "2021-02-19T22:26:08Z")

</div>

Hello, Is it possible to write a number (or a text) as a marker instead of using a markershape ? Thanks Michel

---

## [Regression using Categorical variables](https://discourse.julialang.org/t/regression-using-categorical-variables/7521)

<div class="topic-metadata">

**Author:** [@lukaebby](https://discourse.julialang.org/u/lukaebby)\
**Replies:** 16\
**Last updated:** [February 19, 2021, 10:23pm UTC](https://discourse.julialang.org/t/regression-using-categorical-variables/7521 "2021-02-19T22:23:45Z")

</div>

Can anyone tell me how to define categorical variables (with more than two levels) while performing regression in Julia…? Thanks say my data is my\_dataframe= DataFrame(class=\[3,1,3,2,1,2,1\],hist=\[34,36,38,40,42,44,46\]…

---

## [Preferred way to initialize read-only variable using mutations](https://discourse.julialang.org/t/preferred-way-to-initialize-read-only-variable-using-mutations/55504)

<div class="topic-metadata">

**Author:** [@Uroc327](https://discourse.julialang.org/u/Uroc327)\
**Replies:** 3\
**Last updated:** [February 19, 2021, 9:18pm UTC](https://discourse.julialang.org/t/preferred-way-to-initialize-read-only-variable-using-mutations/55504 "2021-02-19T21:18:37Z")

</div>

I wonder what your preferred ways of initializing a read-only variable using imperative code are. This becomes important, e.g., when there are closures involved and Julia wants to box the variable. Something like funct…

---

## [\`show\` methods for arrays](https://discourse.julialang.org/t/show-methods-for-arrays/55623)

<div class="topic-metadata">

**Author:** [@cscherrer](https://discourse.julialang.org/u/cscherrer)\
**Replies:** 7\
**Last updated:** [February 19, 2021, 8:47pm UTC](https://discourse.julialang.org/t/show-methods-for-arrays/55623 "2021-02-19T20:47:33Z")

</div>

I’m working on something I’m currently calling a TupleVector for representing an MCMC chain where each sample is a NamedTuple. Internally the structure is something like julia\> unwrap(tv) (a = \[1, 3, 4, 5\], b = \[\[0.3693…

---

## [Getting started - 'launch.json'](https://discourse.julialang.org/t/getting-started-launch-json/55634)

<div class="topic-metadata">

**Author:** [@dinosg](https://discourse.julialang.org/u/dinosg)\
**Replies:** 10\
**Last updated:** [February 19, 2021, 8:30pm UTC](https://discourse.julialang.org/t/getting-started-launch-json/55634 "2021-02-19T20:30:14Z")

</div>

OK, I try to run a simple script (print(‘hello’)) from VSCode and whatever environment I’m in it says ‘open launch.json’ and whatever I click nothing happens. WTF IS THIS YOU INCOMPENTENT BASTARDS it is NOT in the qu…

---

## [Convert array into matrix in place](https://discourse.julialang.org/t/convert-array-into-matrix-in-place/55624)

<div class="topic-metadata">

**Author:** [@anon74562486](https://discourse.julialang.org/u/anon74562486)\
**Replies:** 6\
**Last updated:** [February 19, 2021, 7:37pm UTC](https://discourse.julialang.org/t/convert-array-into-matrix-in-place/55624 "2021-02-19T19:37:54Z")

</div>

Is there any way to convert an array into a matrix in place? Thank you.

---

## [Peformance Benckmark of HTTP.jl](https://discourse.julialang.org/t/peformance-benckmark-of-http-jl/55642)

<div class="topic-metadata">

**Author:** [@DataPsycho](https://discourse.julialang.org/u/DataPsycho)\
**Replies:** 1\
**Last updated:** [February 19, 2021, 7:13pm UTC](https://discourse.julialang.org/t/peformance-benckmark-of-http-jl/55642 "2021-02-19T19:13:21Z")

</div>

Hi, Does any one one have a proper performance bench mark of HTTP.jl . I have build same service in 3 different framework GinTonic-GO, HTTP.jl - Julia, Flask-Restful - Python. I though I will get a lot better performanc…

---

## [Metal Gear Solid is a board game now](https://discourse.julialang.org/t/metal-gear-solid-is-a-board-game-now/46398)

<div class="topic-metadata">

**Author:** [@anon60034542](https://discourse.julialang.org/u/anon60034542)\
**Replies:** 1\
**Last updated:** [February 19, 2021, 6:30pm UTC](https://discourse.julialang.org/t/metal-gear-solid-is-a-board-game-now/46398 "2021-02-19T18:30:09Z")

</div>

Check it out here. MGS is a single player game, but the board game says it’s for up to 1-4 players, any idea how that works? How would the Psycho Mantis fight work (if you don’t know, he reads the players memory card a…

---

## [Don't understand findmax()](https://discourse.julialang.org/t/dont-understand-findmax/55636)

<div class="topic-metadata">

**Author:** [@Ravinder\_Ram](https://discourse.julialang.org/u/Ravinder_Ram)\
**Replies:** 2\
**Last updated:** [February 19, 2021, 6:26pm UTC](https://discourse.julialang.org/t/dont-understand-findmax/55636 "2021-02-19T18:26:01Z")

</div>

findmax(model(preprocess(images\[i\]))) .- (0,1) code link code link

---

## [Speeding Up Function with ::Function and ::Vararg input](https://discourse.julialang.org/t/speeding-up-function-with-function-and-vararg-input/55551)

<div class="topic-metadata">

**Author:** [@markmbaum](https://discourse.julialang.org/u/markmbaum)\
**Replies:** 17\
**Last updated:** [February 19, 2021, 5:51pm UTC](https://discourse.julialang.org/t/speeding-up-function-with-function-and-vararg-input/55551 "2021-02-19T17:51:47Z")

</div>

I need help understanding how/if I can speed up a function that has a ::Function argument and a ::Vararg argument. I have several functions that do almost the same thing. They each receive a few vector arguments, calcul…

---

## [If I'm given a list of grammar rules like: (http://www.math.pitt.edu/~bard/bardwar](https://discourse.julialang.org/t/if-im-given-a-list-of-grammar-rules-like-http-www-math-pitt-edu-bard-bardwar/55632)

<div class="topic-metadata">

**Author:** [@BridgeBot](https://discourse.julialang.org/u/BridgeBot)\
**Replies:** 1\
**Last updated:** [February 19, 2021, 5:26pm UTC](https://discourse.julialang.org/t/if-im-given-a-list-of-grammar-rules-like-http-www-math-pitt-edu-bard-bardwar/55632 "2021-02-19T17:26:39Z")

</div>

if I’m given a list of grammar rules like: full list \<name\>'=\<formula\> ... \<name\>(t)=\<formula\> volt \<name\>=\<formula\> ... \<name\>(t+1)=\<formula\> ... \<name\>=\<formula\> ... what is the “right” way to parse files that follo…

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

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