Skip to content

Commit

Permalink
Merge pull request #229 from Renumics/fix/vite-errors-when-starting-d…
Browse files Browse the repository at this point in the history
…ev-mode

Fix/vite errors when starting dev mode
  • Loading branch information
neindochoh authored Sep 18, 2023
2 parents aecf89f + 64e11c8 commit 200dd35
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions renumics/spotlight_plugins/core/pandas_data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ def __init__(self, source: Union[Path, pd.DataFrame]):
].features.items():
print(feature_type)
if isinstance(feature_type, datasets.ClassLabel):
print(feature_type.names)
print(df[feature_name])
try:
df[feature_name] = pd.Categorical.from_codes(
df[feature_name], categories=feature_type.names
Expand Down
4 changes: 2 additions & 2 deletions src/icons/Array.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { IconType } from 'react-icons';
import { VscSymbolArray } from 'react-icons/vsc';
import tw from 'twin.macro';

const Array: IconType = tw(
const ArrayIcon: IconType = tw(
VscSymbolArray
)`w-4 h-4 font-semibold inline-block align-middle stroke-current`;
export default Array;
export default ArrayIcon;
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export default defineConfig(({ mode }) => {
},
},
rollupOptions: {
input: ['src/main.tsx', 'src/lib.ts'],
output: {
name: 'Spotlight',
},
Expand Down

0 comments on commit 200dd35

Please sign in to comment.