# General Usage

**URL:** https://discourse.julialang.org/c/usage/6.md?page=704

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

**Page:** 705

---

## [Is @time not tracking the full evaluation time?](https://discourse.julialang.org/t/is-time-not-tracking-the-full-evaluation-time/46327)

<div class="topic-metadata">

**Author:** [@johnmyleswhite](https://discourse.julialang.org/u/johnmyleswhite)\
**Replies:** 6\
**Last updated:** [September 9, 2020, 1:13pm UTC](https://discourse.julialang.org/t/is-time-not-tracking-the-full-evaluation-time/46327 "2020-09-09T13:13:40Z")

</div>

If I type something like the following into the 1.5.1 REPL, I find the results very surprising: julia\> @time NTuple{10000, Int}\[\] 0.000001 seconds (1 allocation: 80 bytes) NTuple{10000,Int64}\[\] @time reports a very s…

---

## [Question about Clustering.silhouettes](https://discourse.julialang.org/t/question-about-clustering-silhouettes/46323)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 0\
**Last updated:** [September 9, 2020, 11:30am UTC](https://discourse.julialang.org/t/question-about-clustering-silhouettes/46323 "2020-09-09T11:30:53Z")

</div>

The silhouettes function can examine the effect of a cluster as well as predict its number. But when I apply this method to estimate the number of classes, why do I get a different graph every time I run it? the first …

---

## [Makie downgrade help?](https://discourse.julialang.org/t/makie-downgrade-help/46267)

<div class="topic-metadata">

**Author:** [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Replies:** 5\
**Last updated:** [September 9, 2020, 10:54am UTC](https://discourse.julialang.org/t/makie-downgrade-help/46267 "2020-09-09T10:54:26Z")

</div>

So, I just ran add MiniFB to try out a new package and this triggered an update which downgrades Updating \`~/.julia/environments/v1.5/Project.toml\` \[537997a7\] ↓ AbstractPlotting v0.12.9 ⇒ v0.10.6 \[3da002f7\] ↓ ColorT…

---

## [Please bring workspace() or an equivalent back](https://discourse.julialang.org/t/please-bring-workspace-or-an-equivalent-back/27948)

<div class="topic-metadata">

**Author:** [@stochastic\_guy](https://discourse.julialang.org/u/stochastic_guy)\
**Replies:** 6\
**Last updated:** [September 9, 2020, 7:25am UTC](https://discourse.julialang.org/t/please-bring-workspace-or-an-equivalent-back/27948 "2020-09-09T07:25:35Z")

</div>

From all the discussions I have read about Julia, I have got the impression that you are supposed to use Julia in long sessions than quitting and restarting Julia every now and then. But then the problem faced is an over…

---

## [Please help me to find a easiest Algorithm for this case](https://discourse.julialang.org/t/please-help-me-to-find-a-easiest-algorithm-for-this-case/46186)

<div class="topic-metadata">

**Author:** [@xp-gamer](https://discourse.julialang.org/u/xp-gamer)\
**Replies:** 9\
**Last updated:** [September 8, 2020, 10:03pm UTC](https://discourse.julialang.org/t/please-help-me-to-find-a-easiest-algorithm-for-this-case/46186 "2020-09-08T22:03:39Z")

</div>

I am working on strings on Julia language. I working on a function where input string format is need to be converted to respective output mentioned below, please help me in finding a easier algorithm for this condition. …

---

## [Cummean, cumall, and cumany](https://discourse.julialang.org/t/cummean-cumall-and-cumany/46219)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 7\
**Last updated:** [September 9, 2020, 6:15am UTC](https://discourse.julialang.org/t/cummean-cumall-and-cumany/46219 "2020-09-09T06:15:20Z")

</div>

Currently, these functions exist in Base: cumsum cumprod cummin (using accumulate) cummax (using accumulate) I’m just checking out dplyr’s functions and they have cummean cumall (logical bit vector) cumany (logical …

---

## [Automatically fusing together several for-loops](https://discourse.julialang.org/t/automatically-fusing-together-several-for-loops/46097)

<div class="topic-metadata">

**Author:** [@Adam\_Haber](https://discourse.julialang.org/u/Adam_Haber)\
**Replies:** 23\
**Last updated:** [September 9, 2020, 4:01am UTC](https://discourse.julialang.org/t/automatically-fusing-together-several-for-loops/46097 "2020-09-09T04:01:12Z")

</div>

I’m trying to speed up an algorithm that computes various graph statistics. The relevant part of the code is: struct erg{G \<: AbstractArray{Bool},F \<: Function} \<: AbstractGraph{Int} m::G fs::Vector{F} trans…

---

## [Installing jupyterlab-vim](https://discourse.julialang.org/t/installing-jupyterlab-vim/46289)

<div class="topic-metadata">

**Author:** [@rcnlee](https://discourse.julialang.org/u/rcnlee)\
**Replies:** 2\
**Last updated:** [September 8, 2020, 10:06pm UTC](https://discourse.julialang.org/t/installing-jupyterlab-vim/46289 "2020-09-08T22:06:36Z")

</div>

Hello! I am running Jupyterlab from IJulia. I would like to install jupyterlab-vim. The instructions say to issue this command jupyter labextension install jupyterlab\_vim. How do you do this in IJulia or Conda.jl? T…

---

## [Error launching slurm job: no method matching replace(::String, ::String, ::String)](https://discourse.julialang.org/t/error-launching-slurm-job-no-method-matching-replace-string-string-string/46279)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 1\
**Last updated:** [September 8, 2020, 6:16pm UTC](https://discourse.julialang.org/t/error-launching-slurm-job-no-method-matching-replace-string-string-string/46279 "2020-09-08T18:16:40Z")

</div>

Steps to reproduce: log in and request an interactive session: srun -A me -p free --pty bash -i cd to a network share that is accessible from every node on the cluster: cd /dfs5/myshare/ open the REPL, activate env…

---

## [Revise.jl randomly fails to notice rsynced code changes](https://discourse.julialang.org/t/revise-jl-randomly-fails-to-notice-rsynced-code-changes/23589)

<div class="topic-metadata">

**Author:** [@robsmith11](https://discourse.julialang.org/u/robsmith11)\
**Replies:** 3\
**Last updated:** [September 8, 2020, 1:14pm UTC](https://discourse.julialang.org/t/revise-jl-randomly-fails-to-notice-rsynced-code-changes/23589 "2020-09-08T13:14:08Z")

</div>

I’ve been using Revise.jl successfully on my local system, but on my remote server (x86-64 linux with nightly Julia), it will silently fail to use new code that I’ve rsynced over. I can confirm that the remote files are…

---

## [Arrays, Matrix, append!](https://discourse.julialang.org/t/arrays-matrix-append/46177)

<div class="topic-metadata">

**Author:** [@Lucas\_Gartner](https://discourse.julialang.org/u/Lucas_Gartner)\
**Replies:** 10\
**Last updated:** [September 8, 2020, 12:42pm UTC](https://discourse.julialang.org/t/arrays-matrix-append/46177 "2020-09-08T12:42:50Z")

</div>

Hey all, may you can tell me some insights about the arrays in julia and their dimension. I came from python3.7 and want to translate a python script to julia. I need to create a list, and iterate through a set of vecs…

---

## [Issorted for Dataframe rows](https://discourse.julialang.org/t/issorted-for-dataframe-rows/46251)

<div class="topic-metadata">

**Author:** [@bernhard](https://discourse.julialang.org/u/bernhard)\
**Replies:** 5\
**Last updated:** [September 8, 2020, 12:11pm UTC](https://discourse.julialang.org/t/issorted-for-dataframe-rows/46251 "2020-09-08T12:11:30Z")

</div>

I have a dataframe with a few dozen columns. For each row I want to ensure that a subset of the columns (let’s say the relevant columns are named x1 to x6) is sorted I was wondering whether there is a faster approach t…

---

## [Statically compiled and statically linked](https://discourse.julialang.org/t/statically-compiled-and-statically-linked/12290)

<div class="topic-metadata">

**Author:** [@nobody](https://discourse.julialang.org/u/nobody)\
**Replies:** 35\
**Last updated:** [September 8, 2020, 11:57am UTC](https://discourse.julialang.org/t/statically-compiled-and-statically-linked/12290 "2020-09-08T11:57:58Z")

</div>

I love the syntax of julia, but, unless julia became statically compiled & statically linked and enables cross compilation, i will use julia as my one and only language. For the mean time there’s https://golang.org/ and h…

---

## [Faster date parsing?](https://discourse.julialang.org/t/faster-date-parsing/46248)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 6\
**Last updated:** [September 8, 2020, 10:34am UTC](https://discourse.julialang.org/t/faster-date-parsing/46248 "2020-09-08T10:34:50Z")

</div>

I wonder if there is a faster date parsing package in Julia for example where the default Date parsing is quite slow versus a custom algorithm. using Dates date = Dates.format(Date(2020, 08, 09), "mm/dd/yyyy") using Be…

---

## [Error when calling ScikitLearn from a function in a Package](https://discourse.julialang.org/t/error-when-calling-scikitlearn-from-a-function-in-a-package/46131)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 7\
**Last updated:** [September 8, 2020, 7:03am UTC](https://discourse.julialang.org/t/error-when-calling-scikitlearn-from-a-function-in-a-package/46131 "2020-09-08T07:03:13Z")

</div>

I have a function inside a package that I am writing, that looks like this: using ScikitLearn function logistic\_skl(points::AbstractMatrix{\<:Real}, labels::AbstractVector{Bool}) @sk\_import linear\_model: LogisticReg…

---

## [\\cdot not printing properly in my REPL](https://discourse.julialang.org/t/cdot-not-printing-properly-in-my-repl/46194)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 6\
**Last updated:** [September 8, 2020, 6:37am UTC](https://discourse.julialang.org/t/cdot-not-printing-properly-in-my-repl/46194 "2020-09-08T06:37:38Z")

</div>

So in goofing around with matrices, I tried to do \\cdot\<tab\> in the REPL and expected the dot-symbol that can be used to compute the inner product. Instead, I got a question-mark in a box. It computes correctly, and when…

---

## [Generating data with multiple index](https://discourse.julialang.org/t/generating-data-with-multiple-index/46223)

<div class="topic-metadata">

**Author:** [@Arega\_Getaneh](https://discourse.julialang.org/u/Arega_Getaneh)\
**Replies:** 2\
**Last updated:** [September 7, 2020, 9:04pm UTC](https://discourse.julialang.org/t/generating-data-with-multiple-index/46223 "2020-09-07T21:04:08Z")

</div>

J= 3 #numeber of agents T = 24 # time horizon W= 100 #Numebr of scenario d\_jtw\_mean = \[50 ,70,90\] d\_jtw\_std = 0.25 d\_jtw\_sigma = d\_jtw\_std\*d\_jtw\_mean dd = MvNormal(d\_jtw\_mean, d\_jtw\_sigma) d\_jtw= rand(dd,W) which giv…

---

## [How to use a variable value inside @tullio](https://discourse.julialang.org/t/how-to-use-a-variable-value-inside-tullio/46172)

<div class="topic-metadata">

**Author:** [@Joris\_Pinkse](https://discourse.julialang.org/u/Joris_Pinkse)\
**Replies:** 12\
**Last updated:** [September 7, 2020, 8:12pm UTC](https://discourse.julialang.org/t/how-to-use-a-variable-value-inside-tullio/46172 "2020-09-07T20:12:54Z")

</div>

What’s the proper syntax to get this to run? using Tullio function ugh(tf::Bool) X = randn(10000,100) y = zeros(100) @tullio threads=tf y\[j\] = X\[i,j\] end ugh(true)

---

## [Simple discrete event simulation in Julia](https://discourse.julialang.org/t/simple-discrete-event-simulation-in-julia/46013)

<div class="topic-metadata">

**Author:** [@DrDoug](https://discourse.julialang.org/u/DrDoug)\
**Replies:** 2\
**Last updated:** [September 7, 2020, 7:38pm UTC](https://discourse.julialang.org/t/simple-discrete-event-simulation-in-julia/46013 "2020-09-07T19:38:45Z")

</div>

I am porting a process-based discrete simulation DSL from Racket into Julia and am beginning by developing a very simple (almost trivial) sample to make sure I understand using tasks to represent simulation processes and…

---

## [Getting the benchmarked speedup from Distances.jl](https://discourse.julialang.org/t/getting-the-benchmarked-speedup-from-distances-jl/46170)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 8\
**Last updated:** [September 7, 2020, 6:08pm UTC](https://discourse.julialang.org/t/getting-the-benchmarked-speedup-from-distances-jl/46170 "2020-09-07T18:08:34Z")

</div>

I am studying the possibility of using Distances.jl to accelerate the computation of Euclidean distances between atom coordinates in a package, but I am not getting something right, because my simple loops perform better…

---

## [Boolean false filter in update selection query](https://discourse.julialang.org/t/boolean-false-filter-in-update-selection-query/46203)

<div class="topic-metadata">

**Author:** [@yoh-meyers](https://discourse.julialang.org/u/yoh-meyers)\
**Replies:** 5\
**Last updated:** [September 7, 2020, 3:26pm UTC](https://discourse.julialang.org/t/boolean-false-filter-in-update-selection-query/46203 "2020-09-07T15:26:46Z")

</div>

Hello, Am trying to update values in a dataframe as follows: df\[ ( df\[!, :country\] .== country && !df\[!, :bool\] ), :value \] = value However I receive error that non-boolean value is used i…

---

## [Issue with FFMPEG and libk5crypto.so.3](https://discourse.julialang.org/t/issue-with-ffmpeg-and-libk5crypto-so-3/46197)

<div class="topic-metadata">

**Author:** [@CodeLenz](https://discourse.julialang.org/u/CodeLenz)\
**Replies:** 0\
**Last updated:** [September 7, 2020, 1:27pm UTC](https://discourse.julialang.org/t/issue-with-ffmpeg-and-libk5crypto-so-3/46197 "2020-09-07T13:27:00Z")

</div>

Hi. Stock Julia 1.5.1. Fresh install, empty .julia so far. (@v1.5) pkg\> add FFMPEG Updating registry at \`~/.julia/registries/General\` Resolving package versions... Updating \`~/.julia/environments/v1.5/Project.toml…

---

## [Custom debugging with macro programming](https://discourse.julialang.org/t/custom-debugging-with-macro-programming/46191)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 1\
**Last updated:** [September 7, 2020, 11:18am UTC](https://discourse.julialang.org/t/custom-debugging-with-macro-programming/46191 "2020-09-07T11:18:23Z")

</div>

How would I do the following the right way? for sym in (:debugging, :debugging\_str) @eval macro $sym(ex) quote $(esc(println(Dates.now(UTC), ":\\t", ex))) end end end Sometimes if I u…

---

## [netcdf.DLL library not found on Windows Server 2016](https://discourse.julialang.org/t/netcdf-dll-library-not-found-on-windows-server-2016/46072)

<div class="topic-metadata">

**Author:** [@josimar](https://discourse.julialang.org/u/josimar)\
**Replies:** 3\
**Last updated:** [September 7, 2020, 11:14am UTC](https://discourse.julialang.org/t/netcdf-dll-library-not-found-on-windows-server-2016/46072 "2020-09-07T11:14:46Z")

</div>

I am trying to read an exodus file using the NetCDF package. If I only add the NetCDF package to my environment than it works fine. However, when I add the package MATLAB to my environment then I get an error message rel…

---

## [Screenshots with package or cmd tool](https://discourse.julialang.org/t/screenshots-with-package-or-cmd-tool/46158)

<div class="topic-metadata">

**Author:** [@noroskir](https://discourse.julialang.org/u/noroskir)\
**Replies:** 1\
**Last updated:** [September 7, 2020, 9:57am UTC](https://discourse.julialang.org/t/screenshots-with-package-or-cmd-tool/46158 "2020-09-07T09:57:38Z")

</div>

Hello there ! Is there a native Julia package to take a screenshot? Alternatively does anybody know if it is possible to read the output of a cmd tool like xwd ( X Window Dump ) directly into a Julia object ? Thanks! …

---

## [Plotting dynamical systems trajectories](https://discourse.julialang.org/t/plotting-dynamical-systems-trajectories/46166)

<div class="topic-metadata">

**Author:** [@zagorskij](https://discourse.julialang.org/u/zagorskij)\
**Replies:** 4\
**Last updated:** [September 7, 2020, 9:45am UTC](https://discourse.julialang.org/t/plotting-dynamical-systems-trajectories/46166 "2020-09-07T09:45:57Z")

</div>

Hi, I think everybody here saw the trajecotires of a dynamical system plotted as shown on the picture , with those pretty arrows. I have stumbled across some solutions overlapping to the trajectories the vector field, …

---

## [How to remove all w](https://discourse.julialang.org/t/how-to-remove-all-w/46152)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 6\
**Last updated:** [September 7, 2020, 7:26am UTC](https://discourse.julialang.org/t/how-to-remove-all-w/46152 "2020-09-07T07:26:52Z")

</div>

how to remove all two-letter words from an Array String? the numbers remain. data like this: julia\> baza1\[:,5\] 1074955-element Array{String,1}: "test" "mm gastro" "mm gastro" "mm gastro" "pps ps sc" "00-254" "00as…

---

## [Tullio, LoopVectorization: \`pointer\` becomes slow for views because of \`Base.\_memory\_offset\` for \`ndims(...) \>= 5\`](https://discourse.julialang.org/t/tullio-loopvectorization-pointer-becomes-slow-for-views-because-of-base-memory-offset-for-ndims-5/46178)

<div class="topic-metadata">

**Author:** [@ranocha](https://discourse.julialang.org/u/ranocha)\
**Replies:** 1\
**Last updated:** [September 7, 2020, 7:04am UTC](https://discourse.julialang.org/t/tullio-loopvectorization-pointer-becomes-slow-for-views-because-of-base-memory-offset-for-ndims-5/46178 "2020-09-07T07:04:36Z")

</div>

While improving the performance of some code using Tullio.jl and LoopVectorization.jl, I recognized a significant performance impact when using views of Arrays with at least five indices. Since LoopVectorization.jl works…

---

## [Julia equivalent for python scipy.optimize.fsolve](https://discourse.julialang.org/t/julia-equivalent-for-python-scipy-optimize-fsolve/46139)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 29\
**Last updated:** [September 7, 2020, 7:17am UTC](https://discourse.julialang.org/t/julia-equivalent-for-python-scipy-optimize-fsolve/46139 "2020-09-07T07:17:09Z")

</div>

What would be the Julia equivalent for python scipy.optimize.fsolve, to resolve function F (x) f1 = 1- x \[1\] - x \[2\] f2 = 8 - x \[1\] - 3 \* x \[2\] return f1, f2 end x0 = \[1,1\] Solves a linear system of equations s…

---

## [Can I @rput to RStudio server](https://discourse.julialang.org/t/can-i-rput-to-rstudio-server/45790)

<div class="topic-metadata">

**Author:** [@scotts](https://discourse.julialang.org/u/scotts)\
**Replies:** 2\
**Last updated:** [September 7, 2020, 1:34am UTC](https://discourse.julialang.org/t/can-i-rput-to-rstudio-server/45790 "2020-09-07T01:34:28Z")

</div>

I’ve just installed Julia 1.5.1 and R (v3.6.3) on a Codeanywhere container running Ubuntu 16.04. I was happily surprised to find that RCall works beautfully, however I’m also running an instance of RStudio Server. over …

[Previous page](https://discourse.julialang.org/c/usage/6.md?page=703)

[Next page](https://discourse.julialang.org/c/usage/6.md?page=705)
