Skip to content

Commit

Permalink
Change project name to phoenix
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeldking committed Nov 18, 2022
1 parent 8997865 commit 5f6655e
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>App</title>
<script src="./arize_toolbox/nbextension/static/index.js"></script>
<script src="./phoenix/nbextension/static/index.js"></script>
</head>
<body>
<div id="root"></div>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"typescript": "^4.8.4"
},
"scripts": {
"build": "esbuild ui/src/index.tsx --bundle --minify --target=es2020 --format=esm --outfile=arize_toolbox/nbextension/static/index.js"
"build": "esbuild ui/src/index.tsx --bundle --minify --target=es2020 --format=esm --outfile=phoenix/nbextension/static/index.js"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
from .umapWidget import UMAPWidget
from .umapWidget import demo_json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

from IPython.core.display import HTML, display # type: ignore

import arize_toolbox
import phoenix

BASE_PATH = arize_toolbox.__path__[0] # type: ignore
BASE_PATH = phoenix.__path__[0] # type: ignore
STATIC_PATH = os.path.join(BASE_PATH, "nbextension", "static")

"""Loads the compiled Javascript bundle"""
Expand Down Expand Up @@ -40,8 +40,8 @@ def demo_json():


class UMAPWidget:
def __init__(self, to_json=demo_json):
self.to_json = to_json
def __init__(self, json: str):
self.json = json

def template(self, json_data: str):
return f"""
Expand All @@ -58,4 +58,4 @@ def template(self, json_data: str):
# Temporary static json representation of UMAP Drift data

def show(self):
display(HTML(self.template(self.to_json())))
display(HTML(self.template(self.json)))
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ dependencies = ["hatch-jupyter-builder"]
build-function = "hatch_jupyter_builder.npm_builder"

[hatch_jupyter_builder.utils.npm_builder]
build_dir = "/arize_toolbox/nbextension/static"
build_dir = "/phoenix/nbextension/static"

[tool.hatch.version]

[project]
name = "arize_toolbox"
name = "phoenix"
version = "0.0.1"
2 changes: 1 addition & 1 deletion ui/src/components/canvas/DriftPointCloud.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function DriftPointCloud({
referenceData,
}: DriftPointCloudProps) {
return (
<div>
<div style={{ height: 600 }}>
<ErrorBoundary>
<ThreeDimensionalCanvas camera={{ position: [0, 0, 10] }}>
<ThreeDimensionalControls />
Expand Down

0 comments on commit 5f6655e

Please sign in to comment.