Questions tagged [ipynb]
31 questions
0
votes
0 answers
How can I recover a JupyterLite file after a computer reset?
I worked on a project I need to submit. Jupyter wasn't working on my computer so I worked with a JupyterLite notebook. Looks like my computer reset while I was taking a break, and when I turned the screen on I had to log back in as a user into my…

razzi katta
- 1
- 1
0
votes
0 answers
TypeError: 'int' object is not callable OneHotEncoder
I'm trying to use OneHotEncoding on the categorical variables of the following dataset.
Error
ohe = OneHotEncoder(categorical_features = [5])
X = ohe.fit_transform(data).toarray()
Can someone help me to understand why this error occurs and how to…

Idan
- 1
- 1
0
votes
0 answers
Cannot import a function from a file.py
I'm trying to run a script.ipynb, but when import a function from a file.py I have this error.
I tried to change interpreter in visual studio code, but it still doesn't work. Then I installed pylance, but nothing.
Can anyone help me? Thanks in…

ChrisTa
- 1
0
votes
0 answers
ipynb file not opening in localhost internet explorer
I am using a remote desktop for work. I can open jupyter notebook via the Anaconda Powershell but when I navigate to the .ipynb file and open it, it opens a new tab that just stays blank.
This was previously working on Google Chrome but for some…

hulio_entredas
- 675
- 1
- 12
0
votes
0 answers
Upload colab notebook to github gives "\n" on all lines when viewed through github
So today I added a new section to my colab notebook and pushed my notebook to github but then when I viewed it all it showed was "\n" on all lines except for a few. You can see it here.
This was done through colab method (save a copy on github way)…
user16949958
0
votes
0 answers
How to make a boxplot image very wide in Pandas
I'm working with pandas and a few other visualization libraries in a Jupyter Notebook. I have a dataframe with 80 columns (variables). I want to make a very wide boxplot image so I can see each boxplot.
When I use the simple boxplot method it…

Jordan
- 3
- 4
0
votes
0 answers
nbqa-flake8: 'charmap' codec can't encode characters in position
Good afternoon!
I'm trying to set up a pre-commit to check the .ipynb file.
It works nbqa flake8 --ignore=E402,W291,W293 --max-line-length=120 --show-source Project.ipynb in command line, the same thing done with
.pre-commit-config.yaml:
repos:
-…

makomo_9
- 1
- 1
0
votes
0 answers
Google Colab: programmatically getting the location of the notebook inside it? (equivalent of `__file__`)
Some colleagues and I have a shared Google Drive folder that has data files and some Colab Python notebooks, but we don't all have our Google Drives arranged the same way, and I have only been able to load data using absolute paths starting with…

AdamF
- 519
- 4
- 11
0
votes
0 answers
How to get back the default open with ipynb files
enter image description here
i was trying to change the default way to open jupyter to chrome , so i went to ipynb file and change the it’s properties and clicked into default and set the open with to chrome as you can see the chrome icon , but i…
0
votes
0 answers
Katex parse error: Unknown column alignment
enter image description hereI used anaconda to launch vs-code and opened an .ipynb file and came across the parse error in the title,
but it compiled fine in browser (same code).
$$u\\left( c \\right) = \\left{ {\\begin{array}{\*{20}{c}}
{\\frac{{ -…

Jame_W
- 1
- 2
0
votes
2 answers
get a dataframe from a python notebook (ipynb) to another
I create a pandas dataframe 'df' in a notebook A, I need use the data frame 'df' in a notebook B. I do not know what can i do. How call df in the notebook B to make some computations and create anothers dataframes
I tried this:
from notbookA import…
0
votes
0 answers
Jupyter hub 'active cloning' of the contents of a markdown cell into another markdown cell
I'm wondering if the following is possible. Say in markdown cell one and two I have the following:
CELL1: Newton's second law is defined as:
CELL2: $ F=ma $
Now, I would like the contents of markdowncell 2 to be 'cloned' to another markdown cell way…

Harryalgreen
- 1
- 1
0
votes
0 answers
Download colab notebook from itself
Is there a way to download the google colab notebook from one of its cells?
The issue appears when co-working on the same notebook and one accidentally overwrites the output of another. I want to save the ipynb file automatically after running my…

griko
- 126
- 4
-1
votes
2 answers
Not able to read file even though it is on the dictionary
I'm trying to append multiple Excel files. Tried to append them as below, but I am not able to.
path = r"C:\Users\u07\Downloads\IEX Prices"
files = os.listdir(path)
files
files_xls = [f for f in files if f[-4:] == 'xlsx'] # Pick out files whose…

Niteesh Shanbog
- 7
- 3
-2
votes
1 answer
Why can't I enter the letter z when editing in a ipynb file in VS Code?
I'm learning Python using VS Code. I've created an ipynb file and I'm having trouble typing the letter z.
It says "(Z) was pressed. Waiting for seconde key for chord" at the bottom of the picture, but I want to enter the letter z, how should I do…

Qiao Er
- 11
- 2