Skip to content

Commit

Permalink
fix(language_comp): update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
zieka committed Aug 7, 2023
1 parent 0f29dab commit b9ea3ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
16 changes: 5 additions & 11 deletions moderne_visualizations_misc/language_composition.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,10 @@
"source": [
"import plotly.express as px\n",
"import pandas as pd\n",
"import warnings\n",
"import moderne_pkg.helpers as helpers\n",
"from code_data_science import data_table as dt, data_grid as moderne_data_grid\n",
"import code_data_science.palette as palette\n",
"\n",
"warnings.simplefilter(\"ignore\")\n",
"\n",
"args = helpers.get_notebook_args_from_env()\n",
"\n",
"# read data table file\n",
"file_name = args[\"filteredDataTableFileName\"]\n",
"df = pd.read_csv(file_name, on_bad_lines='skip', skip_blank_lines=True)\n",
"df = dt.read_csv('../samples/language_composition.csv')\n",
"\n",
"# Exit early if there are no rows and render a plot with a message\n",
"if len(df) == 0:\n",
Expand Down Expand Up @@ -72,7 +66,7 @@
" total_lines_of_java_affected_by_parse_failures = df[(df['hasParseFailures'] == True) & (df['fileType'] == 'java')]['linesOfText'].sum()\n",
"\n",
" # Set the color palette\n",
" colors = helpers.get_moderne_qualitative_palette()\n",
" colors = palette.qualitative()\n",
"\n",
" fig = px.treemap(\n",
" df_file_grouped,\n",
Expand Down Expand Up @@ -136,7 +130,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.17"
"version": "3.11.4"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[project]
name = "moderne_visualizations_misc"
version = "0.1.18"
version = "0.1.19"
description = "Miscellaneous visualizations for the Moderne platform"
authors = [
{ name = "Jonathan Schneider", email = "jonathan@moderne.io" },
Expand Down

0 comments on commit b9ea3ad

Please sign in to comment.