diff --git a/content/data-science/concepts/jupyter-notebook-extensions/jupyter-notebook-extensions.md b/content/data-science/concepts/jupyter-notebook-extensions/jupyter-notebook-extensions.md deleted file mode 100644 index c3a0d1f7ef6..00000000000 --- a/content/data-science/concepts/jupyter-notebook-extensions/jupyter-notebook-extensions.md +++ /dev/null @@ -1,48 +0,0 @@ ---- -Title: 'Jupyter Notebook Extension' -Description: 'Jupyter Notebook extensions are community-developed plugins that enhance the functionality, customization, and usability of Jupyter Notebooks.' -Subjects: - - 'Data Visualization' - - 'Machine Learning' -CatalogContent: - - 'paths/machine-learning-engineer' - - 'paths/visualize-data-with-python' ---- - -**Jupyter Notebook extensions** are add-ons that enhance the functionality of the Jupyter Notebook interface. They allow users to customize and improve their experience by adding various features. - -## Examples of Jupyter Notebook Extensions - -1. **Code Folding**: The `jupyter_fold` extension helps users focus on specific sections by enabling code cells to be folded and unfolded. -2. **Spellchecking**: The `spellchecker` extension highlights misspelt words in both code and Markdown cells. -3. **Table of contents**: The `toc` extension automatically generates a table of contents based on Markdown headers, improving navigation within a notebook. - -## Installing Jupyter Notebook extensions - -The Jupyter Notebook extensions are available through the open-source package `jupyter_contrib_nbextensions`. This Python package provides several unofficial extensions designed to enhance Jupyter Notebook’s capabilities. - -To install it, run the following command: - -```shell -pip install jupyter_contrib_nbextensions && jupyter contrib nbextension install --user -``` - -To add the `nbextensions` to the Jupyter server’s search directory, use: - -```shell -jupyter contrib nbextension install -``` - -## Enabling/Disabling Extensions - -After installation, users need to enable specific extensions like this: - -```pseudo -jupyter nbextension enable -``` - -And to disable: - -```pseudo -jupyter nbextension disable -``` diff --git a/content/javascript/concepts/window/terms/resizeTo/resizeTo.md b/content/javascript/concepts/window/terms/resizeTo/resizeTo.md deleted file mode 100644 index 27949059b31..00000000000 --- a/content/javascript/concepts/window/terms/resizeTo/resizeTo.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -Title: '.resizeTo()' -Description: 'Resizes the browser window to the width and height specified in pixels.' -Subjects: - - 'Web Development' - - 'Computer Science' -Tags: - - 'Arguments' - - 'Functions' - - 'Parameters' -CatalogContent: - - 'introduction-to-javascript' - - 'paths/front-end-engineer-career-path' ---- - -The **`.resizeTo()`** function in JavaScript modifies the browser window’s dimensions based on the specified width and height values in pixels. - -## Syntax - -```pseudo -window.resizeTo(width, height); -``` - -- `width`: Defines the new width of the window in pixels. -- `height`: Defines the new height of the window in pixels. - -## Example - -The example below demonstrates the use of the `.resizeTo()` function: - -```js -window.resizeTo(450, 300); -``` - -The above example will resize the window to a width of _450_ pixels and height of _300_ pixels. diff --git a/content/javascript/concepts/window/terms/scrollTo/scrollTo.md b/content/javascript/concepts/window/terms/scrollTo/scrollTo.md deleted file mode 100644 index 967636b9d08..00000000000 --- a/content/javascript/concepts/window/terms/scrollTo/scrollTo.md +++ /dev/null @@ -1,59 +0,0 @@ ---- -Title: '.scrollTo()' -Description: 'Scrolls document to specified coordinate in pixels.' -Subjects: - - 'Computer Science' - - 'Web Development' -Tags: - - 'Arguments' - - 'Functions' - - 'Parameters' -CatalogContent: - - 'introduction-to-javascript' - - 'paths/front-end-engineer-career-path' ---- - -In JavaScript, **`.scrollTo()`** scrolls the window or document to a specified position in pixels. - -## Syntax - -```pseudo -window.scrollTo(x, y) -``` - -- `x`: The horizontal coordinate (in pixels) to scroll to. -- `y`: The vertical coordinate (in pixels) to scroll to. - -Or, alternatively: - -```pseudo -window.scrollTo(options) -``` - -- `options`: An object with the following optional properties: - - `left`: The horizontal scroll position in pixels. - - `top`: The vertical scroll position in pixels. - - `behavior`: Defines the scrolling behavior. Accepted values: - - `smooth`: Scrolls with an animation. - - `instant`: Scrolls immediately. - - `auto`: Uses the browser's default scrolling behavior. - -## Example 1 - -The code below scrolls the window to _298_ pixels from the left (x-axis) and _57_ pixels from the top (y-axis) using absolute coordinates: - -```js -window.scrollTo(298, 57); -``` - -## Example 2 - -The code below scrolls the window smoothly to _57_ pixels from the top (y-axis) and _298_ pixels from the left (x-axis) using the options object: - -```js -window.scrollTo({ - top: 57, - left: 298, - behavior: 'smooth', -}); -``` diff --git a/content/plotly/concepts/graph-objects/terms/carpet/carpet.md b/content/plotly/concepts/graph-objects/terms/carpet/carpet.md new file mode 100644 index 00000000000..572a7d17f73 --- /dev/null +++ b/content/plotly/concepts/graph-objects/terms/carpet/carpet.md @@ -0,0 +1,53 @@ +--- +Title: '.Carpet()' +Description: 'Creates a grid-based reference for visualizing data in a non-Cartesian coordinate system.' +Subjects: + - 'Data Science' + - 'Data Visualization' +Tags: + - 'Data' + - 'Data Visualization' + - 'Finance' + - 'Graphs' + - 'Plotly' +CatalogContent: + - 'learn-python-3' + - 'paths/data-visualization' +--- + +The **`.Carpet()`** function in Plotly is used to create a carpet plot, which provides a grid-based reference for visualizing the relationship between one or more independent variables and one or more dependent variables in a two-dimensional, non-Cartesian coordinate system. + +## Syntax + +```pseudo +plotly.graph_objects.Carpet(a=None,b=None,x=None, y=None, ...) + +``` + +- `a`: First independent variable values as an array. +- `b`: Second independent variable values as an array. +- `x` (optional): Specifies the x-coordinates of the carpet grid in Cartesian space. If omitted, the plot becomes a cheater plot, and the x-axis is hidden by default. +- `y` (optional): Specifies the y-coordinates of the carpet grid in Cartesian space. + +- The ellipses is an indication of optional paratemeters that can be added. + +## Example + +The example below demonstrates the use of `.Carpet()` function: + +```py +from plotly import graph_objects as go + + +fig = go.Figure(go.Carpet( + a = [4, 4, 4, 6.5, 6.5, 6.5, 5, 5, 5, 8, 8, 8], + b = [1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3], + y = [2, 3.5, 4, 3, 4.5, 5, 5.5, 6.5, 7.5, 8, 8.5, 10], +)) + +fig.show() +``` + +The above code generates the following output: + +![The output of the .Carpet() plot](../../../../../../media/carpet_plot.png) diff --git a/media/carpet_plot.png b/media/carpet_plot.png new file mode 100644 index 00000000000..b78ac9cd7a2 Binary files /dev/null and b/media/carpet_plot.png differ diff --git a/media/getelementbyid.png b/media/getelementbyid.png new file mode 100644 index 00000000000..1ecd4629dad Binary files /dev/null and b/media/getelementbyid.png differ diff --git a/package.json b/package.json index 25ccb7da153..8925e9b1087 100644 --- a/package.json +++ b/package.json @@ -40,5 +40,6 @@ "validate-content-tree": "node .github/scripts/validate-content-tree.js" }, "license": "UNLICENSED", - "version": "1.0.0" + "version": "1.0.0", + "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" }