Some type attack calculations

This commit is contained in:
Lillian Violet 2024-03-07 15:31:20 +01:00
parent 2e9f7975d1
commit 4dade4637a
4 changed files with 243 additions and 3 deletions

View file

@ -17,7 +17,7 @@
devShells = forEachSupportedSystem ({pkgs}: { devShells = forEachSupportedSystem ({pkgs}: {
default = pkgs.mkShell { default = pkgs.mkShell {
packages = with pkgs; packages = with pkgs;
[python311 virtualenv] [python311 virtualenv julia]
++ (with pkgs.python311Packages; [pip requests jupyter pandas numpy matplotlib plotnine polars pyarrow]); ++ (with pkgs.python311Packages; [pip requests jupyter pandas numpy matplotlib plotnine polars pyarrow]);
}; };
}); });

53
julia.ipynb Normal file
View file

@ -0,0 +1,53 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Julia Version 1.10.0\n",
"Commit 3120989f39 (2023-12-25 18:01 UTC)\n",
"Build Info:\n",
"\n",
" Note: This is an unofficial build, please report bugs to the project\n",
" responsible for this build and not to the Julia project unless you can\n",
" reproduce the issue using official builds available at https://julialang.org/downloads\n",
"\n",
"Platform Info:\n",
" OS: Linux (x86_64-unknown-linux-gnu)\n",
" CPU: 8 × Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz\n",
" WORD_SIZE: 64\n",
" LIBM: libopenlibm\n",
" LLVM: libLLVM-15.0.7 (ORCJIT, skylake)\n",
" Threads: 1 on 8 virtual cores\n",
"Environment:\n",
" LD_LIBRARY_PATH = /nix/store/ccbxkk7cdnfgsl6mgfdlikni4mxwandj-pipewire-1.0.3-jack/lib\n",
" JULIA_NUM_THREADS = \n"
]
}
],
"source": [
"versioninfo()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Julia 1.10.0",
"language": "julia",
"name": "julia-1.10"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.10.0"
}
},
"nbformat": 4,
"nbformat_minor": 2
}

File diff suppressed because one or more lines are too long

View file

@ -0,0 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