Skip to content

Instantly share code, notes, and snippets.

View fomightez's full-sized avatar

Wayne's Bioinformatics Code Portal fomightez

View GitHub Profile
@fomightez
fomightez / confusion_matrix_plot_via_seaborn_for_SO.ipynb
Created February 2, 2025 22:43
confusion matrix plot via seaborn for SO
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fomightez
fomightez / so_post_text.md
Created December 11, 2024 20:10
SO reply that someone voted to delete associated with (granted it wasn't a solution) related to https://gist.github.com/fomightez/26e17c0e1d2fafb0c45be8cb8ad7a793

At this time, this isn't an answer as such, but rounds out more of what the original poster should have included.
Plus, this reply points out that the issue doesn't seem to really interfere with observing what the plot is meant to illustrate.


Replicating the issue and getting the full error traceback that should have been included in the post

Searching 'Replicate Andrew's example on PCA' in Google, lead me to the notebook here, which looks to be the same as the OP is running.

I then obtained that notebook and uploaded it to a fresh remote session (served by the MyBinder service) started from the launch badge here. (Or you can just [click here](https://mybinder.org/v2/gh/fomightez/cluster_analysis

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fomightez
fomightez / getvalue_from_jspreadsheet_jexcel_spreadsheet.ipynb
Created December 5, 2024 19:14
Get values from jupyterlab-spreadsheet-editor formula results to use elsewhere
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fomightez
fomightez / mathjax_label_test.ipynb
Created November 26, 2024 16:53
MathJax / Latex label test for reply to SO https://stackoverflow.com/q/79226400/8508004
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fomightez
fomightez / README.md
Last active November 24, 2024 02:38
Demostration Collecting a cell from a previously run Jupyter Notebook and making PDF with that output
@fomightez
fomightez / colorbar_updating_with_interact.ipynb
Created November 7, 2024 16:36
Colorbar updating via ipywidgets interactive()
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fomightez
fomightez / gist_test.py
Last active October 16, 2024 18:27
Test `uv run` with gist Python script with
# Demonstrating "you can now uv run scripts (with inline deps!) from stdin and URL" https://x.com/trevmanz/status/1846301009053970542 and trying
# with the gist use suggestion in https://x.com/trevmanz/status/1846301011809558877
# How to: go https://github.com/fomightez/3Dscatter_plot_mod_playground-binder and launch a session. Install `uv` via `pip install uv`, then run `uv run https://gist.githubusercontent.com/fomightez/3d90c4e5594ddcdf6dd023a80959c107/raw/8b940f9fe9b5a2c0ccc20635cbbd0cce7ef01b53/gist_test.py`
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "rich>=13.9.2",
# ]
# ///
@fomightez
fomightez / SO_PyVista_Oct_15.ipynb
Created October 15, 2024 19:10
PyVista screenshot stuff for SO 79089061
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.