Skip to content

importing adiftools changes/prevents notebook plotting in a kaggle notebook #10

@dan3dewey

Description

@dan3dewey

Hi,
I'm excited to see this project since I'm new to adif files, FT8, and PKSReporter.
I'm trying to use the PSKReporter adif files to see if it can help me understand/model my antenna pattern.

I'm using python in a kaggle notebook - the pip install works fine and so does "import adiftools.adiftools as adiftools" which lets me read the adif file into a dataframe - great!

But, the issue is that the "import ..." causes plotting in the notebook to stop working :(
Are there plot settings that the import changes that I can change back or reset?

Thanks,
-Dan

P.S. Here's code to show the problem in a kaggle python notebook:

import numpy as np
import matplotlib.pyplot as plt

import pandas as pd

!pip install -U adiftools

# Check plotting: Plot appears :)
plt.figure(figsize=(6,6))
plt.plot([1,2,3],[12,10,8])
plt.title("test")
plt.show()

import adiftools.adiftools as adiftools

# Check plotting again: No plot appears :(
plt.figure(figsize=(6,6))
plt.plot([1,2,3],[12,16,8])
plt.title("test")
plt.show()

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions