# General Usage

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

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

**Page:** 498

---

## [WinPython + JupyterLab + Julia 1.5.2 + Julia 1.6.5](https://discourse.julialang.org/t/winpython-jupyterlab-julia-1-5-2-julia-1-6-5/74363)

<div class="topic-metadata">

**Author:** [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Replies:** 8\
**Last updated:** [January 11, 2022, 2:19pm UTC](https://discourse.julialang.org/t/winpython-jupyterlab-julia-1-5-2-julia-1-6-5/74363 "2022-01-11T14:19:57Z")

</div>

Hello, Since nearly one year, I have been using WinPython + JupyterLab + Julia 1.5.2 I can’t remember how I managed to configure that at that time. Using JupyterLab that came with WinPython, I can create Python or Jul…

---

## [Statically rotate 3D scene in Makie.jl](https://discourse.julialang.org/t/statically-rotate-3d-scene-in-makie-jl/74356)

<div class="topic-metadata">

**Author:** [@mattwigway](https://discourse.julialang.org/u/mattwigway)\
**Replies:** 3\
**Last updated:** [January 11, 2022, 2:17pm UTC](https://discourse.julialang.org/t/statically-rotate-3d-scene-in-makie-jl/74356 "2022-01-11T14:17:05Z")

</div>

I am plotting a bivariate normal distribution in Makie. After generating the values, I plot it with this code (full MWE below): fig = Figure() ax1 = Axis3(fig\[1,1\], xlabel="Selection error term", ylabel="Outcome error t…

---

## [Attempt to access Tuple{Float64, Bool} at index \[0\]](https://discourse.julialang.org/t/attempt-to-access-tuple-float64-bool-at-index-0/74386)

<div class="topic-metadata">

**Author:** [@frydaydeep](https://discourse.julialang.org/u/frydaydeep)\
**Replies:** 4\
**Last updated:** [January 11, 2022, 2:11pm UTC](https://discourse.julialang.org/t/attempt-to-access-tuple-float64-bool-at-index-0/74386 "2022-01-11T14:11:46Z")

</div>

a = (1.0,false::Bool) for i in a @show a\[i\] end and it returns LoadError: BoundsError: attempt to access Tuple{Float64, Bool} at index \[0\] however, b = (1,2.0) a\[1\] length(a) for i in 1:length(a) @sho…

---

## [Modifying and testing a registered package in a directory outside of .julia](https://discourse.julialang.org/t/modifying-and-testing-a-registered-package-in-a-directory-outside-of-julia/4882)

<div class="topic-metadata">

**Author:** [@matthew-wingate](https://discourse.julialang.org/u/matthew-wingate)\
**Replies:** 11\
**Last updated:** [January 11, 2022, 1:12pm UTC](https://discourse.julialang.org/t/modifying-and-testing-a-registered-package-in-a-directory-outside-of-julia/4882 "2022-01-11T13:12:58Z")

</div>

I am in the process of editing a file in a standard package (SpecialFunctions). For better or worse, I’ve already done my work using the standard git procedure, but outside the .julia directory structure. I can’t find …

---

## [Precompilation No Effect ?!](https://discourse.julialang.org/t/precompilation-no-effect/74387)

<div class="topic-metadata">

**Author:** [@yoh-meyers](https://discourse.julialang.org/u/yoh-meyers)\
**Replies:** 1\
**Last updated:** [January 11, 2022, 1:05pm UTC](https://discourse.julialang.org/t/precompilation-no-effect/74387 "2022-01-11T13:05:49Z")

</div>

Hello, Am trying to wrap my head around pre-compilation of a package. Have read through SnoopCompile.jl · SnoopCompile and tried the steps myself. So basically in my package I have: if ccall(:jl\_generating\_output, Ci…

---

## [Question about time-series prediction](https://discourse.julialang.org/t/question-about-time-series-prediction/74391)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 1\
**Last updated:** [January 11, 2022, 12:44pm UTC](https://discourse.julialang.org/t/question-about-time-series-prediction/74391 "2022-01-11T12:44:24Z")

</div>

Hi, I’m making predictions about the power system. I have clustered and tagged the current power system data (356\*2568). What method should be used to predict the possible emergence of species tags in the next period of …

---

## [CSV Parser Error](https://discourse.julialang.org/t/csv-parser-error/74357)

<div class="topic-metadata">

**Author:** [@Sumanth](https://discourse.julialang.org/u/Sumanth)\
**Replies:** 6\
**Last updated:** [January 11, 2022, 12:36pm UTC](https://discourse.julialang.org/t/csv-parser-error/74357 "2022-01-11T12:36:56Z")

</div>

Package CSV does not have Parsers in its dependencies: │ - If you have CSV checked out for development and have │ added Parsers as a dependency but haven’t updated your primary │ environment’s manifest file, try P…

---

## [Can you do array lookup at compile time?](https://discourse.julialang.org/t/can-you-do-array-lookup-at-compile-time/74381)

<div class="topic-metadata">

**Author:** [@HenrikM](https://discourse.julialang.org/u/HenrikM)\
**Replies:** 1\
**Last updated:** [January 11, 2022, 9:08am UTC](https://discourse.julialang.org/t/can-you-do-array-lookup-at-compile-time/74381 "2022-01-11T09:08:56Z")

</div>

Is it possible to do array lookup at compile time, that is, fully evaluated in macros? When generating functions, known variables can be interpolated all the way to the compiler: x = 0 f = eval(:(y -\> $x\*y)) \> @code\_llv…

---

## [I need to do a license compliance check on my dependencies](https://discourse.julialang.org/t/i-need-to-do-a-license-compliance-check-on-my-dependencies/50460)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 5\
**Last updated:** [January 11, 2022, 3:30am UTC](https://discourse.julialang.org/t/i-need-to-do-a-license-compliance-check-on-my-dependencies/50460 "2022-01-11T03:30:44Z")

</div>

I’m struggling with the Pkg API. I want to generate a list of all julia packages and I guess artifact software that may have been installed and obtain the name, version, git URL, and license name. Is there an easy way …

---

## [Plotting from a server](https://discourse.julialang.org/t/plotting-from-a-server/74345)

<div class="topic-metadata">

**Author:** [@HugoTrentesaux](https://discourse.julialang.org/u/HugoTrentesaux)\
**Replies:** 4\
**Last updated:** [January 11, 2022, 2:02am UTC](https://discourse.julialang.org/t/plotting-from-a-server/74345 "2022-01-11T02:02:39Z")

</div>

I just opened an issue asking how to use GR without graphical server (https://github.com/jheinen/GR.jl/issues/442) and would like to give a bit of context here. I have a Debian server on which I want to produce automatic…

---

## [How to filter data conditional on two columns](https://discourse.julialang.org/t/how-to-filter-data-conditional-on-two-columns/74173)

<div class="topic-metadata">

**Author:** [@xinchin](https://discourse.julialang.org/u/xinchin)\
**Replies:** 17\
**Last updated:** [January 11, 2022, 1:01am UTC](https://discourse.julialang.org/t/how-to-filter-data-conditional-on-two-columns/74173 "2022-01-11T01:01:53Z")

</div>

I’ve a dataframe which has the information about money transactions between customers in each region. I like to filter customers in each region which both receive and send money to each other. suppose from and to are c…

---

## [How do I find if an object is a Struct, a Dictionary or a NamedTuple?](https://discourse.julialang.org/t/how-do-i-find-if-an-object-is-a-struct-a-dictionary-or-a-namedtuple/74364)

<div class="topic-metadata">

**Author:** [@Soldalma](https://discourse.julialang.org/u/Soldalma)\
**Replies:** 3\
**Last updated:** [January 10, 2022, 10:27pm UTC](https://discourse.julialang.org/t/how-do-i-find-if-an-object-is-a-struct-a-dictionary-or-a-namedtuple/74364 "2022-01-10T22:27:39Z")

</div>

I wrote simple functions that print structs, dictionaries and named tuples nicely. I would like to write a function that takes a vector and prints each element, calling one of these three functions if the element is a st…

---

## [Model weights dense](https://discourse.julialang.org/t/model-weights-dense/74349)

<div class="topic-metadata">

**Author:** [@Sumanth](https://discourse.julialang.org/u/Sumanth)\
**Replies:** 5\
**Last updated:** [January 10, 2022, 10:21pm UTC](https://discourse.julialang.org/t/model-weights-dense/74349 "2022-01-10T22:21:48Z")

</div>

Error : type Dense has no field weight, What is going wrong?

---

## [Improved installation for diffeqpy and similar packages](https://discourse.julialang.org/t/improved-installation-for-diffeqpy-and-similar-packages/74350)

<div class="topic-metadata">

**Author:** [@jlapeyre](https://discourse.julialang.org/u/jlapeyre)\
**Replies:** 2\
**Last updated:** [January 10, 2022, 7:44pm UTC](https://discourse.julialang.org/t/improved-installation-for-diffeqpy-and-similar-packages/74350 "2022-01-10T19:44:24Z")

</div>

Here is an alternative, more user friendly, packaging of diffeqpy. (diffeqpy allows calling DifferentialEquations.jl from Python): https://github.com/jlapeyre/diffeq\_julia If you use diffeqpy, please give this a try. I…

---

## [Getting the Github all checks pass green mark even if CodeCov decreased](https://discourse.julialang.org/t/getting-the-github-all-checks-pass-green-mark-even-if-codecov-decreased/74264)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 2\
**Last updated:** [January 10, 2022, 3:34pm UTC](https://discourse.julialang.org/t/getting-the-github-all-checks-pass-green-mark-even-if-codecov-decreased/74264 "2022-01-10T15:34:00Z")

</div>

Is there a way to not make CodeCov decreases result in this red cross that Github displays? See figure for an example. All tests pass, documentation builds fine, but CodeCov coverage decreased by a few percent and now yo…

---

## [Set default tolerance for isapprox()](https://discourse.julialang.org/t/set-default-tolerance-for-isapprox/74337)

<div class="topic-metadata">

**Author:** [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Replies:** 6\
**Last updated:** [January 10, 2022, 2:37pm UTC](https://discourse.julialang.org/t/set-default-tolerance-for-isapprox/74337 "2022-01-10T14:37:16Z")

</div>

How can I define isapprox() for a type such that I can set a default tolerance but the user can override it if required? struct MyType v::Float64 end Base.isapprox(x::MyType, y::MyType) = isapprox(x.v, y.v, atol=10e-…

---

## [Cleanest way to generate all combinations of n arrays](https://discourse.julialang.org/t/cleanest-way-to-generate-all-combinations-of-n-arrays/20127)

<div class="topic-metadata">

**Author:** [@srb](https://discourse.julialang.org/u/srb)\
**Replies:** 17\
**Last updated:** [January 10, 2022, 1:49pm UTC](https://discourse.julialang.org/t/cleanest-way-to-generate-all-combinations-of-n-arrays/20127 "2022-01-10T13:49:38Z")

</div>

What I am trying to get is all the possible values given an array \[0, 1, 2\] and a number n. The result for n=3 would be: \[0,0,0\] \[0,0,1\], \[0,0,2\] \[0,1,0\] ... \[2,2,2\] So basically all the numbers in base 3 given as sepa…

---

## [How to get version number from Package compiled into System Image?](https://discourse.julialang.org/t/how-to-get-version-number-from-package-compiled-into-system-image/58687)

<div class="topic-metadata">

**Author:** [@Brad\_Carman](https://discourse.julialang.org/u/Brad_Carman)\
**Replies:** 0\
**Last updated:** [April 6, 2021, 2:48pm UTC](https://discourse.julialang.org/t/how-to-get-version-number-from-package-compiled-into-system-image/58687 "2021-04-06T14:48:53Z")

</div>

If I use PackageCompiler.jl to add a package to my system image, how can I get the version number of the package that was compiled? I’m aware of PkgVersion.jl, but I believe this is only returning the version number fou…

---

## [Apps with PackageCompiler - errors with examples in documentation](https://discourse.julialang.org/t/apps-with-packagecompiler-errors-with-examples-in-documentation/66745)

<div class="topic-metadata">

**Author:** [@lwhitefox](https://discourse.julialang.org/u/lwhitefox)\
**Replies:** 0\
**Last updated:** [August 20, 2021, 7:48pm UTC](https://discourse.julialang.org/t/apps-with-packagecompiler-errors-with-examples-in-documentation/66745 "2021-08-20T19:48:05Z")

</div>

I’m attempting to learn to use PackageCompiler to make apps, using the instructions here (with a direct copy of the example code). The app building steps work (if slowly), but when attempting to run the demo app on MacO…

---

## [Weave: how to get different output for notebook vs html](https://discourse.julialang.org/t/weave-how-to-get-different-output-for-notebook-vs-html/74187)

<div class="topic-metadata">

**Author:** [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Replies:** 1\
**Last updated:** [January 10, 2022, 12:18pm UTC](https://discourse.julialang.org/t/weave-how-to-get-different-output-for-notebook-vs-html/74187 "2022-01-10T12:18:01Z")

</div>

I am using Weave to generate various literate outputs from julia code. Depending on the output i want slightly different code to run. Interact.jl doesn’t work in HTML output, but does work in jupyter. So for my intera…

---

## [Way to get default color order in Plots.jl?](https://discourse.julialang.org/t/way-to-get-default-color-order-in-plots-jl/12643)

<div class="topic-metadata">

**Author:** [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Replies:** 10\
**Last updated:** [January 10, 2022, 12:11pm UTC](https://discourse.julialang.org/t/way-to-get-default-color-order-in-plots-jl/12643 "2022-01-10T12:11:59Z")

</div>

If you’re using pgfplots() through Plots.jl the colors are not the obvious ones you think they would be (i.e. :blue, :red, :green)? Is there a way to get the default color order within the Plots.jl framework? By pictu…

---

## [Exception when download(url) for CSV file](https://discourse.julialang.org/t/exception-when-download-url-for-csv-file/74325)

<div class="topic-metadata">

**Author:** [@maajdl](https://discourse.julialang.org/u/maajdl)\
**Replies:** 4\
**Last updated:** [January 10, 2022, 11:50am UTC](https://discourse.julialang.org/t/exception-when-download-url-for-csv-file/74325 "2022-01-10T11:50:20Z")

</div>

Hello I tried to download a CSV file from a certain URL. It triggers an exceptions, as show below. In Python, using Pandas, there is no problem to donwload this file. I could download the same file from my GitHup rep…

---

## [Is there a file watchdog concept in julia](https://discourse.julialang.org/t/is-there-a-file-watchdog-concept-in-julia/74316)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 2\
**Last updated:** [January 10, 2022, 1:18am UTC](https://discourse.julialang.org/t/is-there-a-file-watchdog-concept-in-julia/74316 "2022-01-10T01:18:42Z")

</div>

Hi All I am experimenting with some thoughts about how I want to use julia. One of them is to keep an eye on a directory and watch for interesting events. Some examples file creation file deletion file modification fi…

---

## [Plots.jl series\_annotations in log space?](https://discourse.julialang.org/t/plots-jl-series-annotations-in-log-space/74265)

<div class="topic-metadata">

**Author:** [@ANasc](https://discourse.julialang.org/u/ANasc)\
**Replies:** 2\
**Last updated:** [January 9, 2022, 9:43pm UTC](https://discourse.julialang.org/t/plots-jl-series-annotations-in-log-space/74265 "2022-01-09T21:43:33Z")

</div>

I’m trying to make a simple scatter plot with annotations beside each point. The annotations plot just fine until I try to log the points and then they don’t appear at all. Does anyone know what I’m doing wrong? Thanks! …

---

## [TimeArray and last don't play well together](https://discourse.julialang.org/t/timearray-and-last-dont-play-well-together/74296)

<div class="topic-metadata">

**Author:** [@JackStrauss](https://discourse.julialang.org/u/JackStrauss)\
**Replies:** 5\
**Last updated:** [January 9, 2022, 9:10pm UTC](https://discourse.julialang.org/t/timearray-and-last-dont-play-well-together/74296 "2022-01-09T21:10:01Z")

</div>

Hi all I am puzzled as to why TimeArray does not fully work with last() using Dates, TimeSeries dates = Date(2018, 1, 1):Day(1):Date(2018, 12, 31) ta = TimeArray(dates, rand(length(dates))) then last(ta) works but las…

---

## [Animating a 3D scatter plot in GLMakie](https://discourse.julialang.org/t/animating-a-3d-scatter-plot-in-glmakie/74278)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 8\
**Last updated:** [January 9, 2022, 2:37pm UTC](https://discourse.julialang.org/t/animating-a-3d-scatter-plot-in-glmakie/74278 "2022-01-09T14:37:51Z")

</div>

Hi all, I am trying to create an animation of a 3D scatter plot in GLMakie. In principle, I thought that it would be straightforward to adapt the 2D animation from the documentation, but this has proven to be more diffi…

---

## [Documenter.jl for types constructors](https://discourse.julialang.org/t/documenter-jl-for-types-constructors/74262)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 0\
**Last updated:** [January 9, 2022, 12:53am UTC](https://discourse.julialang.org/t/documenter-jl-for-types-constructors/74262 "2022-01-09T00:53:49Z")

</div>

Hi, I am trying to use Documenter.jl to pick up the docstrings of a custom struct called KalmanSettings for MessyTimeSeries.jl (dev branch). However, in my local enviroment, @docs KalmanSettings seem to pick up only t…

---

## [Why isn't this example function being documented?](https://discourse.julialang.org/t/why-isnt-this-example-function-being-documented/74252)

<div class="topic-metadata">

**Author:** [@Soldalma](https://discourse.julialang.org/u/Soldalma)\
**Replies:** 4\
**Last updated:** [January 8, 2022, 11:13pm UTC](https://discourse.julialang.org/t/why-isnt-this-example-function-being-documented/74252 "2022-01-08T23:13:32Z")

</div>

I am trying to document my functions with mixed results. This simple example, which I pasted on the julia\> prompt, does not seem to work: """ foo(x, y) Some comment. Another comment. """ function foo(x, y) ret…

---

## [How to load a whole "project" into a worker with @everywhere](https://discourse.julialang.org/t/how-to-load-a-whole-project-into-a-worker-with-everywhere/74249)

<div class="topic-metadata">

**Author:** [@GalloLuigi](https://discourse.julialang.org/u/GalloLuigi)\
**Replies:** 2\
**Last updated:** [January 8, 2022, 10:32pm UTC](https://discourse.julialang.org/t/how-to-load-a-whole-project-into-a-worker-with-everywhere/74249 "2022-01-08T22:32:17Z")

</div>

Hi I have a very complex function called “simulation”. I want to remotely run with these instructions: results =remotecall\_fetch(simulate,2, SIS(), get!(…

---

## [Reduce.jl expand/rcall deadlock](https://discourse.julialang.org/t/reduce-jl-expand-rcall-deadlock/74259)

<div class="topic-metadata">

**Author:** [@LebesgueMeasure](https://discourse.julialang.org/u/LebesgueMeasure)\
**Replies:** 0\
**Last updated:** [January 8, 2022, 9:41pm UTC](https://discourse.julialang.org/t/reduce-jl-expand-rcall-deadlock/74259 "2022-01-08T21:41:10Z")

</div>

The Reduce.jl, the following works using Reduce Reduce.expand(“3x+2y+2.12x+3.2y”) However if I try the following expand(“f(X,Y)+2g(X1,X2,X2)+2f(X,Y)”) it gets into an infinite loop. If I interrupt once, and try agai…

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

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